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
- TextBoxAutoCompleteSourceConverter.cs
- BuilderPropertyEntry.cs
- WaveHeader.cs
- StrokeNodeOperations.cs
- Page.cs
- DataGridViewBindingCompleteEventArgs.cs
- _Win32.cs
- XslCompiledTransform.cs
- DataStorage.cs
- UrlMappingCollection.cs
- WebPartMenu.cs
- MinMaxParagraphWidth.cs
- Errors.cs
- DataObjectEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- QueryPageSettingsEventArgs.cs
- SmtpMail.cs
- TextRunCacheImp.cs
- SHA384.cs
- TextRenderer.cs
- ApplicationBuildProvider.cs
- DataGridViewCheckBoxCell.cs
- Label.cs
- ImageListUtils.cs
- PointHitTestParameters.cs
- RectangleConverter.cs
- GeneralTransform2DTo3D.cs
- XmlCodeExporter.cs
- ToolStripComboBox.cs
- ServicePointManagerElement.cs
- StaticResourceExtension.cs
- ReliableMessagingHelpers.cs
- InputBinding.cs
- MetricEntry.cs
- FullTextLine.cs
- ObjectSecurity.cs
- Misc.cs
- LayoutInformation.cs
- ClientBuildManagerCallback.cs
- IriParsingElement.cs
- ImageMapEventArgs.cs
- FreezableDefaultValueFactory.cs
- BrowserCapabilitiesCompiler.cs
- LastQueryOperator.cs
- PriorityQueue.cs
- AuthenticationSection.cs
- regiisutil.cs
- ServiceManagerHandle.cs
- SerialPort.cs
- AsyncWaitHandle.cs
- XPathScanner.cs
- ChannelPoolSettingsElement.cs
- ScaleTransform3D.cs
- WebPartDescription.cs
- BufferBuilder.cs
- SymmetricCryptoHandle.cs
- SmiMetaDataProperty.cs
- TextDecorationCollection.cs
- ShortcutKeysEditor.cs
- BlockUIContainer.cs
- Authorization.cs
- DataGridViewColumnHeaderCell.cs
- RelationshipEndMember.cs
- HeaderCollection.cs
- Span.cs
- XPathExpr.cs
- LinqExpressionNormalizer.cs
- Sql8ExpressionRewriter.cs
- InternalEnumValidatorAttribute.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Attachment.cs
- ListView.cs
- SessionEndingEventArgs.cs
- EntityDataSourceWrapperCollection.cs
- GcHandle.cs
- DataServiceClientException.cs
- ColorBlend.cs
- XmlExceptionHelper.cs
- ACL.cs
- LogEntrySerializer.cs
- Stack.cs
- MachineKeyValidationConverter.cs
- ScriptControl.cs
- AssemblyName.cs
- BitmapEffectGeneralTransform.cs
- MinMaxParagraphWidth.cs
- GestureRecognitionResult.cs
- FormsAuthenticationUserCollection.cs
- DiscoveryMessageSequenceCD1.cs
- ZipPackagePart.cs
- SymDocumentType.cs
- SelectionRange.cs
- AddInBase.cs
- EllipticalNodeOperations.cs
- SrgsSemanticInterpretationTag.cs
- InstanceHandleReference.cs
- NamespaceEmitter.cs
- SerializationEventsCache.cs
- IISUnsafeMethods.cs
- WebPartRestoreVerb.cs