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
- AgileSafeNativeMemoryHandle.cs
- ErrorLog.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- XpsS0ValidatingLoader.cs
- DbConnectionStringCommon.cs
- XmlUtil.cs
- KerberosReceiverSecurityToken.cs
- FieldBuilder.cs
- Int32Converter.cs
- GraphicsState.cs
- Guid.cs
- FileSystemEnumerable.cs
- UnmanagedMemoryStream.cs
- MsdtcClusterUtils.cs
- TraceSource.cs
- __ConsoleStream.cs
- ServiceModelStringsVersion1.cs
- XmlILIndex.cs
- SqlUtils.cs
- MembershipPasswordException.cs
- BufferedReceiveManager.cs
- nulltextcontainer.cs
- ScriptServiceAttribute.cs
- MarshalDirectiveException.cs
- IChannel.cs
- CharacterMetrics.cs
- Parser.cs
- Point3DCollection.cs
- UidManager.cs
- CornerRadiusConverter.cs
- IncrementalReadDecoders.cs
- NativeCompoundFileAPIs.cs
- OutputCacheProfile.cs
- WebPartVerb.cs
- TextLineBreak.cs
- ActivityCollectionMarkupSerializer.cs
- NameValueFileSectionHandler.cs
- StateBag.cs
- IIS7UserPrincipal.cs
- SqlDataReaderSmi.cs
- ByeMessageApril2005.cs
- CompilerCollection.cs
- ConfigurationManagerHelper.cs
- ZipIOBlockManager.cs
- GenericParameterDataContract.cs
- KeyConstraint.cs
- SQLString.cs
- CornerRadius.cs
- SubMenuStyle.cs
- ProcessInputEventArgs.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CmsInterop.cs
- NamespaceQuery.cs
- ImageButton.cs
- _LocalDataStoreMgr.cs
- BamlMapTable.cs
- RequestTimeoutManager.cs
- WebPartEventArgs.cs
- TextEditorTables.cs
- baseaxisquery.cs
- Soap.cs
- WinInet.cs
- HostedTransportConfigurationBase.cs
- StringComparer.cs
- TextSelectionHelper.cs
- ListView.cs
- CharacterString.cs
- PropertyBuilder.cs
- XPathAxisIterator.cs
- GestureRecognitionResult.cs
- CodeAttachEventStatement.cs
- EncoderFallback.cs
- XmlSchemaIdentityConstraint.cs
- ViewgenGatekeeper.cs
- ConstrainedDataObject.cs
- TimeSpan.cs
- HostingMessageProperty.cs
- xml.cs
- ComponentDispatcherThread.cs
- StyleBamlRecordReader.cs
- SSmlParser.cs
- XmlElementAttribute.cs
- SocketPermission.cs
- Literal.cs
- MonthChangedEventArgs.cs
- LazyTextWriterCreator.cs
- PixelFormatConverter.cs
- ResetableIterator.cs
- Enum.cs
- TimeoutValidationAttribute.cs
- RichTextBox.cs
- RTLAwareMessageBox.cs
- AttributeUsageAttribute.cs
- DragEvent.cs
- HttpCacheVary.cs
- HandoffBehavior.cs
- DataServiceBuildProvider.cs
- Clock.cs
- Axis.cs
- CounterSampleCalculator.cs