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
- AvTraceDetails.cs
- Rectangle.cs
- RemotingConfigParser.cs
- DetailsViewPagerRow.cs
- DynamicScriptObject.cs
- XPathScanner.cs
- SmiEventStream.cs
- UnsafeNativeMethodsCLR.cs
- XmlSchemaInclude.cs
- LayoutManager.cs
- NotifyInputEventArgs.cs
- BlurBitmapEffect.cs
- TextParagraphCache.cs
- UseManagedPresentationBindingElementImporter.cs
- wgx_render.cs
- LockCookie.cs
- WebBrowsableAttribute.cs
- RectangleF.cs
- ResourceWriter.cs
- BackgroundFormatInfo.cs
- _AutoWebProxyScriptEngine.cs
- FixedDocumentSequencePaginator.cs
- SystemEvents.cs
- ScriptingScriptResourceHandlerSection.cs
- IdnMapping.cs
- DefaultPropertyAttribute.cs
- PasswordRecovery.cs
- MasterPageCodeDomTreeGenerator.cs
- WindowsAuthenticationModule.cs
- DeclarativeCatalogPart.cs
- FragmentQueryProcessor.cs
- validation.cs
- SystemInfo.cs
- ApplicationDirectory.cs
- DesignerLoader.cs
- LocationReferenceValue.cs
- PrintDocument.cs
- ReaderWriterLock.cs
- OLEDB_Util.cs
- TypeConverterHelper.cs
- EncryptedKey.cs
- ExpressionLexer.cs
- FederatedMessageSecurityOverHttpElement.cs
- TypeSystemProvider.cs
- CommonDialog.cs
- HttpHandlerActionCollection.cs
- Quad.cs
- WindowsUpDown.cs
- AcceleratedTokenProvider.cs
- EDesignUtil.cs
- Token.cs
- DashStyles.cs
- SoapWriter.cs
- CompletedAsyncResult.cs
- XmlStringTable.cs
- basevalidator.cs
- TraceHandler.cs
- dbenumerator.cs
- FSWPathEditor.cs
- UTF8Encoding.cs
- SystemUnicastIPAddressInformation.cs
- EntityDataSourceColumn.cs
- Column.cs
- SelectedGridItemChangedEvent.cs
- DataRecord.cs
- XmlILConstructAnalyzer.cs
- EntityViewGenerationConstants.cs
- TypeDependencyAttribute.cs
- XmlSchemaAny.cs
- BevelBitmapEffect.cs
- HttpModuleActionCollection.cs
- WinEventTracker.cs
- StringConcat.cs
- CookieParameter.cs
- FlowDocumentReader.cs
- StylusPointPropertyId.cs
- DockProviderWrapper.cs
- Keywords.cs
- SqlDependencyListener.cs
- FontConverter.cs
- SmtpAuthenticationManager.cs
- EditBehavior.cs
- ParameterEditorUserControl.cs
- TextCompositionManager.cs
- SmiMetaDataProperty.cs
- TableLayoutSettingsTypeConverter.cs
- XmlAutoDetectWriter.cs
- XmlSortKey.cs
- UndoManager.cs
- MeasureItemEvent.cs
- NativeCppClassAttribute.cs
- EmbeddedObject.cs
- EntityDataSourceContextCreatingEventArgs.cs
- WebPartEditorCancelVerb.cs
- TreeIterator.cs
- Number.cs
- DataGridTable.cs
- BodyGlyph.cs
- URLMembershipCondition.cs
- BaseCodePageEncoding.cs