Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / AmbientProperties.cs / 1305376 / AmbientProperties.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Copyright (c) 1999, Microsoft Corporation. All Rights Reserved. * Information Contained Herein is Proprietary and Confidential. */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; using System.Windows.Forms.Design; using System.ComponentModel.Design; using System.Drawing; using Microsoft.Win32; ////// /// // // NOTE: internally, this class does double duty as storage for Control's inherited properties. public sealed class AmbientProperties { // Public ambient properties private Color backColor; private Color foreColor; private Cursor cursor; private Font font; ////// Provides ambient property values to top-level controls. /// ////// /// public Color BackColor { get { return backColor; } set { backColor = value; } } ////// Gets the ambient BackColor, or Color.Empty if there is none. /// ////// /// public Cursor Cursor { get { return cursor; } set { cursor = value; } } ////// Gets the ambient BackColor, or null if there is none. /// ////// /// public Font Font { get { return font; } set { font = value; } } ////// Gets the ambient Font, or null if there is none. /// ////// /// public Color ForeColor { get { return foreColor; } set { foreColor = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets the ambient ForeColor, or Color.Empty if there is none. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Copyright (c) 1999, Microsoft Corporation. All Rights Reserved. * Information Contained Herein is Proprietary and Confidential. */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; using System.Windows.Forms.Design; using System.ComponentModel.Design; using System.Drawing; using Microsoft.Win32; ////// /// // // NOTE: internally, this class does double duty as storage for Control's inherited properties. public sealed class AmbientProperties { // Public ambient properties private Color backColor; private Color foreColor; private Cursor cursor; private Font font; ////// Provides ambient property values to top-level controls. /// ////// /// public Color BackColor { get { return backColor; } set { backColor = value; } } ////// Gets the ambient BackColor, or Color.Empty if there is none. /// ////// /// public Cursor Cursor { get { return cursor; } set { cursor = value; } } ////// Gets the ambient BackColor, or null if there is none. /// ////// /// public Font Font { get { return font; } set { font = value; } } ////// Gets the ambient Font, or null if there is none. /// ////// /// public Color ForeColor { get { return foreColor; } set { foreColor = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets the ambient ForeColor, or Color.Empty if there is none. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LineSegment.cs
- BaseCodePageEncoding.cs
- StateMachineDesignerPaint.cs
- TreeNodeConverter.cs
- CodeGeneratorAttribute.cs
- TrackingCondition.cs
- Page.cs
- XmlEventCache.cs
- WizardStepBase.cs
- ImageIndexConverter.cs
- BufferedReadStream.cs
- JobInputBins.cs
- HttpCookieCollection.cs
- UriGenerator.cs
- ZipArchive.cs
- FontEmbeddingManager.cs
- LinqExpressionNormalizer.cs
- ApplicationCommands.cs
- ConstructorNeedsTagAttribute.cs
- ToolStripStatusLabel.cs
- ObjectQuery.cs
- SmtpMail.cs
- WebBrowsableAttribute.cs
- SecurityUtils.cs
- MachineKeySection.cs
- AsyncSerializedWorker.cs
- ScrollChrome.cs
- CodeDirectionExpression.cs
- ToolboxComponentsCreatingEventArgs.cs
- SortAction.cs
- Errors.cs
- ConstrainedDataObject.cs
- BaseTemplateBuildProvider.cs
- EntityDataSourceSelectedEventArgs.cs
- TableCellCollection.cs
- XmlSerializerAssemblyAttribute.cs
- VarRemapper.cs
- AttributeQuery.cs
- ServiceChannel.cs
- WriteTimeStream.cs
- RichTextBoxAutomationPeer.cs
- NetPeerTcpBindingCollectionElement.cs
- MarshalByRefObject.cs
- HMACSHA512.cs
- AsymmetricSignatureFormatter.cs
- ValidatorCompatibilityHelper.cs
- LinkedResource.cs
- XmlLinkedNode.cs
- GroupPartitionExpr.cs
- AsyncPostBackTrigger.cs
- PageCatalogPart.cs
- ApplicationCommands.cs
- RestClientProxyHandler.cs
- CanExpandCollapseAllConverter.cs
- AsyncOperationLifetimeManager.cs
- RenderDataDrawingContext.cs
- XmlQualifiedNameTest.cs
- GACIdentityPermission.cs
- HtmlInputCheckBox.cs
- safemediahandle.cs
- Thread.cs
- SizeIndependentAnimationStorage.cs
- ObjectDataSourceChooseMethodsPanel.cs
- DataServiceConfiguration.cs
- ValidatorCompatibilityHelper.cs
- FindCriteriaCD1.cs
- ByteAnimationBase.cs
- Missing.cs
- XsdBuildProvider.cs
- TdsParserSafeHandles.cs
- AuthenticationException.cs
- InstanceData.cs
- DataServiceException.cs
- TextServicesManager.cs
- ItemTypeToolStripMenuItem.cs
- NaturalLanguageHyphenator.cs
- EventSource.cs
- ProfileSettings.cs
- SqlReferenceCollection.cs
- Internal.cs
- WebContext.cs
- TypeConverterAttribute.cs
- ReachPrintTicketSerializer.cs
- DataGridCommandEventArgs.cs
- AffineTransform3D.cs
- BoundField.cs
- DataServiceClientException.cs
- DesignerCapabilities.cs
- Stopwatch.cs
- _BaseOverlappedAsyncResult.cs
- FixedSOMLineCollection.cs
- Latin1Encoding.cs
- PresentationTraceSources.cs
- TextParagraphProperties.cs
- _NestedSingleAsyncResult.cs
- DelegateBodyWriter.cs
- WorkflowDefinitionDispenser.cs
- DesignerResources.cs
- IPAddressCollection.cs
- ProjectionCamera.cs