Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / AmbientProperties.cs / 1 / 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
- FixedSOMFixedBlock.cs
- GridView.cs
- ObjectContextServiceProvider.cs
- DataGridViewSelectedColumnCollection.cs
- TableRowCollection.cs
- DataStorage.cs
- XmlDataSource.cs
- Logging.cs
- DateTimeFormatInfo.cs
- AttributeAction.cs
- KeyConverter.cs
- HttpDictionary.cs
- WasNotInstalledException.cs
- FileSecurity.cs
- BuildResult.cs
- CharacterBuffer.cs
- CompilerScope.Storage.cs
- RegistryExceptionHelper.cs
- AxHostDesigner.cs
- HostProtectionPermission.cs
- SoapAttributes.cs
- RemoteWebConfigurationHostServer.cs
- ACE.cs
- SizeF.cs
- DataGridViewRowStateChangedEventArgs.cs
- PackageProperties.cs
- XmlSchemaFacet.cs
- CompilerTypeWithParams.cs
- UInt64.cs
- GridItemPattern.cs
- WebEventCodes.cs
- Accessible.cs
- TypeConverters.cs
- DeferredReference.cs
- XmlSchemaAnyAttribute.cs
- DesignerValidationSummaryAdapter.cs
- SqlTriggerContext.cs
- Nullable.cs
- GridLength.cs
- IfAction.cs
- PersonalizationProviderCollection.cs
- CustomPopupPlacement.cs
- PageBuildProvider.cs
- WebRequestModuleElementCollection.cs
- EntityModelBuildProvider.cs
- InstalledFontCollection.cs
- ThaiBuddhistCalendar.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- PropertyGridView.cs
- InvokeHandlers.cs
- ClipboardData.cs
- XmlSignificantWhitespace.cs
- Command.cs
- CombinedGeometry.cs
- DataGridToolTip.cs
- TcpHostedTransportConfiguration.cs
- WorkflowRuntimeSection.cs
- NamespaceEmitter.cs
- Table.cs
- WindowsIPAddress.cs
- RefreshEventArgs.cs
- ThumbAutomationPeer.cs
- XmlnsCompatibleWithAttribute.cs
- StringValueSerializer.cs
- _PooledStream.cs
- EventLogPermissionEntryCollection.cs
- Padding.cs
- StubHelpers.cs
- Choices.cs
- TimeoutException.cs
- AssertFilter.cs
- DemultiplexingClientMessageFormatter.cs
- QilChoice.cs
- MetadataUtil.cs
- Variable.cs
- PropertyChangeTracker.cs
- RecognizedWordUnit.cs
- FeatureSupport.cs
- SoapUnknownHeader.cs
- TransactionManager.cs
- XhtmlBasicValidatorAdapter.cs
- XmlDataContract.cs
- TypeConverterHelper.cs
- Misc.cs
- IndicCharClassifier.cs
- ByteStreamMessageEncoderFactory.cs
- CustomGrammar.cs
- METAHEADER.cs
- Light.cs
- NativeObjectSecurity.cs
- KoreanCalendar.cs
- VisualState.cs
- SoapAttributes.cs
- TransactionManagerProxy.cs
- BooleanToVisibilityConverter.cs
- GridViewActionList.cs
- HttpProfileGroupBase.cs
- InkCollectionBehavior.cs
- Wizard.cs
- CommandLibraryHelper.cs