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
- EmptyQuery.cs
- MessageQueueException.cs
- ExtendedPropertyDescriptor.cs
- TrackingMemoryStreamFactory.cs
- bindurihelper.cs
- PrimitiveSchema.cs
- assemblycache.cs
- Sql8ExpressionRewriter.cs
- EditorPartCollection.cs
- EntityUtil.cs
- SrgsElementList.cs
- XmlEncodedRawTextWriter.cs
- DbTransaction.cs
- ExtenderProvidedPropertyAttribute.cs
- ZoneButton.cs
- SynchronizedInputAdaptor.cs
- MD5.cs
- ZipIOExtraFieldZip64Element.cs
- ValidationSummary.cs
- WizardForm.cs
- HtmlSelect.cs
- Filter.cs
- CaseExpr.cs
- Byte.cs
- ProtocolsSection.cs
- ScalarConstant.cs
- Lease.cs
- CodeTypeReferenceExpression.cs
- TimeSpanParse.cs
- XPathSelfQuery.cs
- TimeoutConverter.cs
- ResourceAttributes.cs
- Style.cs
- EdmFunction.cs
- ToolStripItemEventArgs.cs
- EntityCommand.cs
- EntitySqlQueryBuilder.cs
- Semaphore.cs
- ReversePositionQuery.cs
- WindowInteropHelper.cs
- RenderTargetBitmap.cs
- Array.cs
- RecordConverter.cs
- AddInControllerImpl.cs
- StructuredTypeEmitter.cs
- WindowShowOrOpenTracker.cs
- EntryPointNotFoundException.cs
- InkPresenterAutomationPeer.cs
- XmlNamespaceDeclarationsAttribute.cs
- GiveFeedbackEvent.cs
- ParameterCollectionEditor.cs
- DbLambda.cs
- DataGridViewCellStateChangedEventArgs.cs
- CookieParameter.cs
- WindowsServiceCredential.cs
- mansign.cs
- _HTTPDateParse.cs
- ServiceMoniker.cs
- GlyphRunDrawing.cs
- ObjectDataSourceFilteringEventArgs.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- ProtectedConfigurationSection.cs
- FreezableDefaultValueFactory.cs
- IHttpResponseInternal.cs
- ToolStripDropDownClosedEventArgs.cs
- DynamicObject.cs
- XmlSerializerFactory.cs
- Storyboard.cs
- ThrowOnMultipleAssignment.cs
- MemoryRecordBuffer.cs
- TabletCollection.cs
- XmlnsPrefixAttribute.cs
- GlyphingCache.cs
- Point3DCollection.cs
- ValueType.cs
- SchemaImporterExtension.cs
- OutputCacheProfileCollection.cs
- EventDescriptorCollection.cs
- RuleSetCollection.cs
- GroupQuery.cs
- StatusCommandUI.cs
- ButtonBaseAdapter.cs
- ChineseLunisolarCalendar.cs
- SyndicationDeserializer.cs
- XPathSelfQuery.cs
- MissingMemberException.cs
- FreezableDefaultValueFactory.cs
- ToolStripDropDownItem.cs
- ThrowHelper.cs
- ToolStripItemImageRenderEventArgs.cs
- TimestampInformation.cs
- SimpleWebHandlerParser.cs
- CultureTableRecord.cs
- RandomNumberGenerator.cs
- SplashScreen.cs
- SqlUserDefinedAggregateAttribute.cs
- HttpPostedFile.cs
- ClientSettingsProvider.cs
- UnionCqlBlock.cs
- SAPICategories.cs