Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- QilSortKey.cs
- DefaultTypeArgumentAttribute.cs
- Operand.cs
- EncryptedKey.cs
- SetStoryboardSpeedRatio.cs
- DecimalAnimationBase.cs
- Span.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DataGridViewSelectedColumnCollection.cs
- ScriptServiceAttribute.cs
- WebPartVerb.cs
- SHA256.cs
- InsufficientMemoryException.cs
- ExclusiveCanonicalizationTransform.cs
- UpdatePanelControlTrigger.cs
- PrivilegedConfigurationManager.cs
- UriParserTemplates.cs
- FixedPageAutomationPeer.cs
- UpdatePanel.cs
- _MultipleConnectAsync.cs
- SwitchDesigner.xaml.cs
- EnvironmentPermission.cs
- ModelUtilities.cs
- StringDictionaryCodeDomSerializer.cs
- LinqDataSourceContextEventArgs.cs
- WebServiceData.cs
- TextRange.cs
- XmlValidatingReader.cs
- CompressionTracing.cs
- Avt.cs
- ListChunk.cs
- PieceNameHelper.cs
- WorkflowInspectionServices.cs
- ContextMenuAutomationPeer.cs
- DiscoveryClientDocuments.cs
- RowParagraph.cs
- UpdateManifestForBrowserApplication.cs
- PathParser.cs
- QuerySetOp.cs
- UserMapPath.cs
- TextSelectionHighlightLayer.cs
- EpmCustomContentDeSerializer.cs
- BindUriHelper.cs
- CompositeCollectionView.cs
- _AutoWebProxyScriptHelper.cs
- x509store.cs
- DateTimeConverter2.cs
- BuildTopDownAttribute.cs
- PenLineCapValidation.cs
- AnonymousIdentificationSection.cs
- SafeFileMappingHandle.cs
- ColumnClickEvent.cs
- BaseDataBoundControl.cs
- categoryentry.cs
- METAHEADER.cs
- DriveNotFoundException.cs
- Debug.cs
- BindUriHelper.cs
- MaskInputRejectedEventArgs.cs
- EncodingTable.cs
- OdbcCommand.cs
- CodeCastExpression.cs
- AnnotationService.cs
- ControlAdapter.cs
- ExtensibleClassFactory.cs
- ObjectPropertyMapping.cs
- SupportingTokenSecurityTokenResolver.cs
- PageEventArgs.cs
- BlockUIContainer.cs
- TypefaceMetricsCache.cs
- StrokeNodeData.cs
- DataGridViewAccessibleObject.cs
- SortDescription.cs
- ELinqQueryState.cs
- DataServiceQueryOfT.cs
- _RequestLifetimeSetter.cs
- SelectionEditor.cs
- DataErrorValidationRule.cs
- SecurityHelper.cs
- SystemTcpConnection.cs
- XamlRtfConverter.cs
- Soap12FormatExtensions.cs
- SqlErrorCollection.cs
- ItemCollection.cs
- MatrixIndependentAnimationStorage.cs
- ContentControl.cs
- NumericUpDownAcceleration.cs
- MediaTimeline.cs
- NavigateEvent.cs
- Visual.cs
- AnnotationService.cs
- RecordsAffectedEventArgs.cs
- PathTooLongException.cs
- CommonDialog.cs
- SqlMethodCallConverter.cs
- DetailsViewCommandEventArgs.cs
- BaseParagraph.cs
- MatrixTransform.cs
- DataGridViewCellCancelEventArgs.cs
- WorkflowEventArgs.cs