Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / AmbientProperties.cs / 1305376 / 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
- DataKeyCollection.cs
- SecondaryIndexDefinition.cs
- ExitEventArgs.cs
- ControlBuilderAttribute.cs
- PropertyToken.cs
- SqlConnectionHelper.cs
- OleDbErrorCollection.cs
- MetaModel.cs
- InvalidCastException.cs
- ActiveXSite.cs
- Span.cs
- DataFormat.cs
- HandleTable.cs
- XmlNodeList.cs
- ArrayItemValue.cs
- TreeNodeMouseHoverEvent.cs
- mongolianshape.cs
- TypeConverter.cs
- DataSetUtil.cs
- RequestQueryProcessor.cs
- InkCanvasFeedbackAdorner.cs
- InvalidAsynchronousStateException.cs
- ControlBuilder.cs
- XpsManager.cs
- IdnElement.cs
- Pair.cs
- EventLogPermission.cs
- Perspective.cs
- ServiceManagerHandle.cs
- EntityContainer.cs
- ADConnectionHelper.cs
- BoundPropertyEntry.cs
- ClientScriptManagerWrapper.cs
- FolderNameEditor.cs
- TypographyProperties.cs
- XmlDataCollection.cs
- SplitterEvent.cs
- Event.cs
- ResourceDescriptionAttribute.cs
- WithStatement.cs
- WindowsFont.cs
- TreeIterator.cs
- WorkflowDispatchContext.cs
- Quad.cs
- updateconfighost.cs
- SchemaTableColumn.cs
- TriState.cs
- CodeDelegateCreateExpression.cs
- UiaCoreApi.cs
- DetailsViewPagerRow.cs
- DataGridViewLayoutData.cs
- CFGGrammar.cs
- AnimatedTypeHelpers.cs
- MaskDescriptor.cs
- ListViewCommandEventArgs.cs
- ColumnCollection.cs
- SmiConnection.cs
- UIElement3D.cs
- ApplicationSecurityInfo.cs
- basevalidator.cs
- RsaKeyIdentifierClause.cs
- DataObjectSettingDataEventArgs.cs
- CodeGeneratorOptions.cs
- GridViewPageEventArgs.cs
- MorphHelper.cs
- SettingsAttributeDictionary.cs
- EntityStoreSchemaGenerator.cs
- DictionaryContent.cs
- GeneratedContractType.cs
- MatrixTransform3D.cs
- QueryCacheEntry.cs
- EventProviderWriter.cs
- DecimalConstantAttribute.cs
- FileSystemEventArgs.cs
- LocalTransaction.cs
- BasicKeyConstraint.cs
- XmlHelper.cs
- ImmutableAssemblyCacheEntry.cs
- EmbeddedObject.cs
- WebPartDisplayModeCollection.cs
- XmlDeclaration.cs
- UseLicense.cs
- SystemColors.cs
- InstanceNormalEvent.cs
- DataViewManagerListItemTypeDescriptor.cs
- AutoGeneratedField.cs
- RightsManagementLicense.cs
- COM2PictureConverter.cs
- ListViewSelectEventArgs.cs
- XamlNamespaceHelper.cs
- InitializationEventAttribute.cs
- CancelEventArgs.cs
- EncoderExceptionFallback.cs
- CustomErrorsSection.cs
- InheritanceRules.cs
- Soap.cs
- BaseAddressElement.cs
- AdRotator.cs
- DataGridViewCellLinkedList.cs
- MetadataUtil.cs