Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CommonDialog.cs
- FutureFactory.cs
- ProfilePropertyMetadata.cs
- X509SecurityToken.cs
- Config.cs
- PropertyKey.cs
- CompileLiteralTextParser.cs
- VectorCollectionConverter.cs
- ControlCollection.cs
- TemplateBindingExtensionConverter.cs
- EUCJPEncoding.cs
- Point3DCollectionConverter.cs
- SeverityFilter.cs
- SchemaDeclBase.cs
- ResumeStoryboard.cs
- RIPEMD160.cs
- XmlSchemaValidationException.cs
- PlanCompiler.cs
- SiblingIterators.cs
- mansign.cs
- ThemeDirectoryCompiler.cs
- HtmlFormAdapter.cs
- LicenseProviderAttribute.cs
- AttributeUsageAttribute.cs
- BaseAsyncResult.cs
- WebPartsPersonalization.cs
- DecoderNLS.cs
- DiscoveryEndpointElement.cs
- Accessible.cs
- DocumentViewerHelper.cs
- IfAction.cs
- LogFlushAsyncResult.cs
- COM2ExtendedTypeConverter.cs
- EndpointDispatcher.cs
- log.cs
- BrowserDefinition.cs
- MatrixAnimationBase.cs
- AutomationAttributeInfo.cs
- SoapExtensionImporter.cs
- EditableTreeList.cs
- PtsHost.cs
- FusionWrap.cs
- SecurityState.cs
- DataSourceControlBuilder.cs
- PropertyOrder.cs
- ContextDataSourceContextData.cs
- StorageMappingFragment.cs
- ToolStripContentPanel.cs
- PowerModeChangedEventArgs.cs
- WebBrowserPermission.cs
- ControllableStoryboardAction.cs
- XPathMessageFilter.cs
- SapiInterop.cs
- TreeViewImageIndexConverter.cs
- AssemblyBuilder.cs
- CodeCompiler.cs
- ImagingCache.cs
- WebServiceTypeData.cs
- OleDbRowUpdatingEvent.cs
- EdmComplexPropertyAttribute.cs
- NamedObject.cs
- RightsManagementInformation.cs
- mil_sdk_version.cs
- ProxyWebPartManagerDesigner.cs
- CellTreeNodeVisitors.cs
- EastAsianLunisolarCalendar.cs
- Page.cs
- SafeHandles.cs
- VerificationAttribute.cs
- ImageAttributes.cs
- WebPart.cs
- HtmlFormParameterReader.cs
- Group.cs
- ObjectToken.cs
- EnumType.cs
- InvokeGenerator.cs
- ToolStripPanelRenderEventArgs.cs
- AmbientLight.cs
- Light.cs
- TreeChangeInfo.cs
- Size3D.cs
- XPathSingletonIterator.cs
- DataViewManager.cs
- DataGridViewTopLeftHeaderCell.cs
- listviewsubitemcollectioneditor.cs
- _OSSOCK.cs
- MetadataPropertyCollection.cs
- RepeaterItemCollection.cs
- MessageDesigner.cs
- CopyNodeSetAction.cs
- ExtendedPropertyDescriptor.cs
- ScriptManagerProxy.cs
- MenuStrip.cs
- Token.cs
- ZipIOExtraFieldZip64Element.cs
- Point3DAnimationUsingKeyFrames.cs
- MulticastOption.cs
- ProfessionalColors.cs
- ProfileGroupSettings.cs
- DataServiceRequestException.cs