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
- UndirectedGraph.cs
- ObjectDataSourceDisposingEventArgs.cs
- DispatcherEventArgs.cs
- HttpModuleCollection.cs
- ToolboxItemCollection.cs
- CollectionBuilder.cs
- DataGridViewDataErrorEventArgs.cs
- ZipIOExtraFieldElement.cs
- SamlAction.cs
- IntermediatePolicyValidator.cs
- ArgumentNullException.cs
- ConnectionManagementElementCollection.cs
- Schedule.cs
- Item.cs
- InternalBase.cs
- IsolatedStorage.cs
- BlobPersonalizationState.cs
- HeaderedItemsControl.cs
- HtmlContainerControl.cs
- SrgsText.cs
- WebPartVerbCollection.cs
- remotingproxy.cs
- XsltArgumentList.cs
- StringFormat.cs
- FontSourceCollection.cs
- OutOfMemoryException.cs
- GcHandle.cs
- AssociativeAggregationOperator.cs
- TrustLevelCollection.cs
- CompareValidator.cs
- SqlAliaser.cs
- OutOfMemoryException.cs
- ResetableIterator.cs
- ConstraintConverter.cs
- DbgUtil.cs
- ToolboxBitmapAttribute.cs
- XmlProcessingInstruction.cs
- ReliabilityContractAttribute.cs
- SizeIndependentAnimationStorage.cs
- Empty.cs
- precedingquery.cs
- BaseResourcesBuildProvider.cs
- ExtensionWindowHeader.cs
- XmlAttribute.cs
- ForeignConstraint.cs
- TextElementEditingBehaviorAttribute.cs
- SimpleHandlerBuildProvider.cs
- WebRequestModuleElement.cs
- CommandDevice.cs
- GetLedgerRequest.cs
- SchemaTableOptionalColumn.cs
- PersonalizationState.cs
- ProtocolElement.cs
- hwndwrapper.cs
- DataControlImageButton.cs
- AsymmetricSignatureFormatter.cs
- BitArray.cs
- TraceSource.cs
- XPathScanner.cs
- OleDbFactory.cs
- XmlSchemaProviderAttribute.cs
- SqlGatherProducedAliases.cs
- PeerDuplexChannelListener.cs
- XPathNodeHelper.cs
- PenCursorManager.cs
- CachedBitmap.cs
- VirtualPathUtility.cs
- StyleCollection.cs
- DelayedRegex.cs
- FormatConvertedBitmap.cs
- SkinBuilder.cs
- ToolStripLabel.cs
- AsmxEndpointPickerExtension.cs
- DataChangedEventManager.cs
- ListParaClient.cs
- SchemaElementDecl.cs
- RawStylusActions.cs
- WebControl.cs
- XmlAttributeCollection.cs
- ScrollBar.cs
- XmlSchemaSimpleTypeUnion.cs
- ToolBar.cs
- AlphabeticalEnumConverter.cs
- ScriptControlDescriptor.cs
- Quaternion.cs
- CallbackDebugElement.cs
- WinFormsSpinner.cs
- SpeakCompletedEventArgs.cs
- DbSource.cs
- CachedTypeface.cs
- WindowsGraphics.cs
- TemplateControlBuildProvider.cs
- PageStatePersister.cs
- CodeMemberMethod.cs
- DesignerCategoryAttribute.cs
- InputLanguageCollection.cs
- DataGridViewLinkCell.cs
- SaveFileDialog.cs
- CodeObjectCreateExpression.cs
- PolygonHotSpot.cs