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
- BaseDataListDesigner.cs
- PropertiesTab.cs
- ScriptControlDescriptor.cs
- KeyEventArgs.cs
- RegexRunner.cs
- RotateTransform3D.cs
- TranslateTransform3D.cs
- NavigationPropertySingletonExpression.cs
- BamlWriter.cs
- OracleInternalConnection.cs
- AstNode.cs
- SingleSelectRootGridEntry.cs
- SchemaLookupTable.cs
- TypeReference.cs
- IgnoreFileBuildProvider.cs
- XmlSchemaRedefine.cs
- BrowserDefinitionCollection.cs
- AttributeProviderAttribute.cs
- SqlNamer.cs
- HMAC.cs
- SafeNativeMethods.cs
- DropDownList.cs
- WebOperationContext.cs
- ListViewInsertionMark.cs
- SqlInternalConnection.cs
- ConfigurationValidatorBase.cs
- TreeView.cs
- Ipv6Element.cs
- TemplateNameScope.cs
- BaseTypeViewSchema.cs
- HtmlToClrEventProxy.cs
- COM2IPerPropertyBrowsingHandler.cs
- StringStorage.cs
- ObjectListSelectEventArgs.cs
- TextRangeEditTables.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WriteTimeStream.cs
- ObjectResult.cs
- PersonalizableAttribute.cs
- XmlUnspecifiedAttribute.cs
- WindowsGraphicsWrapper.cs
- PingReply.cs
- DropTarget.cs
- RuleSetDialog.Designer.cs
- ElementInit.cs
- CodeArgumentReferenceExpression.cs
- RequestStatusBarUpdateEventArgs.cs
- DelegatingConfigHost.cs
- XmlSchemaAttribute.cs
- ResourceContainer.cs
- SRGSCompiler.cs
- BrowserCapabilitiesFactoryBase.cs
- WaitHandle.cs
- RedistVersionInfo.cs
- CustomValidator.cs
- AuthStoreRoleProvider.cs
- VectorValueSerializer.cs
- FlowDocumentPage.cs
- EventWaitHandle.cs
- TypedAsyncResult.cs
- WindowsFormsHostPropertyMap.cs
- ServerIdentity.cs
- TabRenderer.cs
- SystemIPv6InterfaceProperties.cs
- WindowsSolidBrush.cs
- ConnectionsZoneDesigner.cs
- RegexCompilationInfo.cs
- WebPartEditVerb.cs
- WorkItem.cs
- DataListAutoFormat.cs
- RowCache.cs
- Int16Storage.cs
- CollectionBuilder.cs
- Quaternion.cs
- IgnoreFlushAndCloseStream.cs
- DataGridDetailsPresenter.cs
- RenderTargetBitmap.cs
- MenuItem.cs
- PieceDirectory.cs
- ApplyTemplatesAction.cs
- AuthenticationException.cs
- FlowDecisionDesigner.xaml.cs
- AsymmetricSignatureFormatter.cs
- StringBuilder.cs
- SelectionGlyphBase.cs
- TemplateFactory.cs
- XsltSettings.cs
- RelatedEnd.cs
- AnnotationResourceChangedEventArgs.cs
- StateFinalizationActivity.cs
- DataGridViewCellFormattingEventArgs.cs
- XmlDocumentSerializer.cs
- ContentPlaceHolder.cs
- ParameterCollectionEditor.cs
- WebZoneDesigner.cs
- ProcessHostServerConfig.cs
- SqlProfileProvider.cs
- GridViewDeleteEventArgs.cs
- WindowsListViewGroupHelper.cs
- GlobalProxySelection.cs