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
- DictionaryBase.cs
- CorrelationService.cs
- NameValueConfigurationCollection.cs
- XmlBindingWorker.cs
- SmiGettersStream.cs
- ArraySortHelper.cs
- TransformGroup.cs
- JournalEntryStack.cs
- TypeDescriptionProvider.cs
- PaginationProgressEventArgs.cs
- storagemappingitemcollection.viewdictionary.cs
- SignatureSummaryDialog.cs
- SafeFileMapViewHandle.cs
- ProgressBarAutomationPeer.cs
- SqlExpander.cs
- XmlIlTypeHelper.cs
- OleDbDataAdapter.cs
- BufferedGraphicsContext.cs
- DoubleCollectionConverter.cs
- Timeline.cs
- XpsFixedDocumentReaderWriter.cs
- CroppedBitmap.cs
- TextRangeProviderWrapper.cs
- DataGridTemplateColumn.cs
- DataGridViewSelectedCellCollection.cs
- MetadataProperty.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- _OSSOCK.cs
- SQLInt16Storage.cs
- _AuthenticationState.cs
- ResourcesGenerator.cs
- ComponentManagerBroker.cs
- LogEntrySerializer.cs
- RadioButton.cs
- Hex.cs
- AsyncResult.cs
- ValueUtilsSmi.cs
- LineProperties.cs
- RemotingClientProxy.cs
- XmlSigningNodeWriter.cs
- x509utils.cs
- XmlDocument.cs
- CodeAccessPermission.cs
- ValueChangedEventManager.cs
- InfoCardMetadataExchangeClient.cs
- SmiRecordBuffer.cs
- ProgressBarRenderer.cs
- WizardForm.cs
- RefreshPropertiesAttribute.cs
- arclist.cs
- metadatamappinghashervisitor.cs
- MemoryRecordBuffer.cs
- CompatibleComparer.cs
- ActivityWithResultWrapper.cs
- ControlUtil.cs
- ClientUrlResolverWrapper.cs
- DependencyPropertyKey.cs
- SqlRetyper.cs
- MetafileHeaderWmf.cs
- Preprocessor.cs
- TextPattern.cs
- HtmlGenericControl.cs
- ProfileModule.cs
- _SslStream.cs
- PagedDataSource.cs
- Int64.cs
- GestureRecognitionResult.cs
- SafeNativeMethodsOther.cs
- TripleDES.cs
- TypeConvertions.cs
- RecordBuilder.cs
- PointAnimation.cs
- ExceptionHelpers.cs
- MiniConstructorInfo.cs
- Socket.cs
- FixedBufferAttribute.cs
- ConsoleCancelEventArgs.cs
- LogWriteRestartAreaAsyncResult.cs
- WebBrowserEvent.cs
- DialogResultConverter.cs
- BitmapEffectState.cs
- DataRelationPropertyDescriptor.cs
- EndpointAddressMessageFilterTable.cs
- AuthStoreRoleProvider.cs
- WorkflowQueue.cs
- Latin1Encoding.cs
- GraphicsPath.cs
- HttpConfigurationContext.cs
- XmlTextEncoder.cs
- IDReferencePropertyAttribute.cs
- DefaultTextStoreTextComposition.cs
- AsymmetricAlgorithm.cs
- UIElement.cs
- ConstantCheck.cs
- _RequestLifetimeSetter.cs
- SharedPersonalizationStateInfo.cs
- ToolStripDropDownButton.cs
- DynamicMetaObject.cs
- TileBrush.cs
- PartialToken.cs