Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RequestNavigateEventArgs.cs
- ConnectivityStatus.cs
- DeriveBytes.cs
- FrameworkName.cs
- ByteFacetDescriptionElement.cs
- DataObject.cs
- RadialGradientBrush.cs
- HttpContextServiceHost.cs
- XmlArrayItemAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- DescriptionAttribute.cs
- ValidationEventArgs.cs
- NoClickablePointException.cs
- HtmlTableRow.cs
- CompositeDataBoundControl.cs
- UserControl.cs
- SelectionPatternIdentifiers.cs
- OutputCacheProfileCollection.cs
- SettingsBindableAttribute.cs
- PolyLineSegment.cs
- Trace.cs
- LeaseManager.cs
- DataGridToolTip.cs
- Icon.cs
- BamlRecordReader.cs
- ParenthesizePropertyNameAttribute.cs
- HtmlTableRow.cs
- AsyncPostBackErrorEventArgs.cs
- CompilerGlobalScopeAttribute.cs
- SessionStateModule.cs
- PreloadedPackages.cs
- Pen.cs
- SizeChangedEventArgs.cs
- WebServiceErrorEvent.cs
- SerializerDescriptor.cs
- BufferCache.cs
- ValidatingPropertiesEventArgs.cs
- PropertyGridEditorPart.cs
- CultureSpecificCharacterBufferRange.cs
- ListViewEditEventArgs.cs
- XmlQueryOutput.cs
- ArraySubsetEnumerator.cs
- ChangeDirector.cs
- ToolboxItemCollection.cs
- SettingsPropertyWrongTypeException.cs
- XmlDeclaration.cs
- ToolStripSeparatorRenderEventArgs.cs
- TemplateControlParser.cs
- DescendantOverDescendantQuery.cs
- RandomDelayQueuedSendsAsyncResult.cs
- QueryCursorEventArgs.cs
- ImageCodecInfoPrivate.cs
- DayRenderEvent.cs
- FloaterBaseParaClient.cs
- XmlQualifiedName.cs
- AnimationStorage.cs
- WebSysDisplayNameAttribute.cs
- DaylightTime.cs
- propertytag.cs
- ResourcesChangeInfo.cs
- HtmlGenericControl.cs
- UnsafeNativeMethods.cs
- XmlJsonReader.cs
- PersonalizationEntry.cs
- Identifier.cs
- List.cs
- wgx_sdk_version.cs
- XmlQueryOutput.cs
- GeometryGroup.cs
- CapacityStreamGeometryContext.cs
- typedescriptorpermission.cs
- DiagnosticsConfiguration.cs
- TypefaceMetricsCache.cs
- NativeCppClassAttribute.cs
- ReadOnlyHierarchicalDataSourceView.cs
- WmlPanelAdapter.cs
- NullReferenceException.cs
- Type.cs
- VarRefManager.cs
- SpotLight.cs
- BrowserDefinition.cs
- RequestQueryParser.cs
- ResourceContainer.cs
- MissingFieldException.cs
- ZipIOLocalFileHeader.cs
- Font.cs
- AppDomainProtocolHandler.cs
- ProviderSettingsCollection.cs
- SystemTcpConnection.cs
- FormsAuthenticationUser.cs
- CancelAsyncOperationRequest.cs
- ServiceNameCollection.cs
- SingleAnimationUsingKeyFrames.cs
- SystemPens.cs
- TypeBuilder.cs
- WebPartHeaderCloseVerb.cs
- PreProcessInputEventArgs.cs
- BitmapImage.cs
- DataTrigger.cs
- JournalEntryListConverter.cs