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
- ExtentKey.cs
- ToolboxBitmapAttribute.cs
- TextComposition.cs
- WebBrowserNavigatingEventHandler.cs
- DesignerTextBoxAdapter.cs
- EventRoute.cs
- XmlSchemaGroupRef.cs
- RuleSettings.cs
- WebEventTraceProvider.cs
- AsymmetricAlgorithm.cs
- ToolStripItemDataObject.cs
- TraceContext.cs
- DrawingImage.cs
- ThaiBuddhistCalendar.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ScrollContentPresenter.cs
- TreeView.cs
- MediaSystem.cs
- DirtyTextRange.cs
- TextEncodedRawTextWriter.cs
- ProfileSettings.cs
- DesignerVerbCollection.cs
- ExcCanonicalXml.cs
- DataTrigger.cs
- BinarySerializer.cs
- ObjectQuery_EntitySqlExtensions.cs
- AttachmentService.cs
- FontWeightConverter.cs
- ItemPager.cs
- Clipboard.cs
- AncillaryOps.cs
- SynchronizingStream.cs
- RNGCryptoServiceProvider.cs
- SeverityFilter.cs
- SchemaLookupTable.cs
- BindingManagerDataErrorEventArgs.cs
- TypeLoadException.cs
- XmlDictionaryWriter.cs
- Int32CollectionValueSerializer.cs
- MultipleViewPattern.cs
- SkipQueryOptionExpression.cs
- SQLSingle.cs
- SafeThreadHandle.cs
- DateBoldEvent.cs
- FormsAuthenticationCredentials.cs
- SoapInteropTypes.cs
- QueueException.cs
- PackagePartCollection.cs
- ExpressionDumper.cs
- DataGridViewLayoutData.cs
- XmlSchemaSimpleTypeUnion.cs
- SkewTransform.cs
- WorkflowTransactionService.cs
- KeyValueConfigurationCollection.cs
- SqlDataSource.cs
- CodeGeneratorAttribute.cs
- UriTemplateTrieLocation.cs
- DataGridTextBoxColumn.cs
- ipaddressinformationcollection.cs
- HelpEvent.cs
- TabItemAutomationPeer.cs
- DataBoundControlHelper.cs
- InstanceNotReadyException.cs
- BeginEvent.cs
- InputBuffer.cs
- HttpCookiesSection.cs
- UmAlQuraCalendar.cs
- StructuredTypeEmitter.cs
- BreakRecordTable.cs
- PagePropertiesChangingEventArgs.cs
- ClrPerspective.cs
- UnsafeNativeMethods.cs
- AllMembershipCondition.cs
- NetTcpBinding.cs
- ContentOperations.cs
- BulletedListEventArgs.cs
- WebPart.cs
- TableLayoutCellPaintEventArgs.cs
- MobileListItem.cs
- ErrorProvider.cs
- versioninfo.cs
- SafeEventHandle.cs
- WindowsListView.cs
- ControlFilterExpression.cs
- CompositionDesigner.cs
- VectorConverter.cs
- SecurityException.cs
- Object.cs
- NativeWindow.cs
- JsonFormatReaderGenerator.cs
- SettingsContext.cs
- ResXFileRef.cs
- RemoteWebConfigurationHostStream.cs
- Simplifier.cs
- shaper.cs
- JournalEntryStack.cs
- ViewPort3D.cs
- WorkflowIdleElement.cs
- SamlAdvice.cs
- TraceSwitch.cs