Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved./// 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
- Utils.cs
- Encoder.cs
- DataGridColumnHeaderCollection.cs
- SoapAttributeOverrides.cs
- TemplatePropertyEntry.cs
- ScrollChrome.cs
- OverrideMode.cs
- DataSourceProvider.cs
- UniqueConstraint.cs
- QueryContinueDragEventArgs.cs
- FormViewDeleteEventArgs.cs
- DownloadProgressEventArgs.cs
- SafeRightsManagementSessionHandle.cs
- TextEditorCopyPaste.cs
- DetailsViewDeleteEventArgs.cs
- DependencyProperty.cs
- Int16KeyFrameCollection.cs
- Calendar.cs
- GlobalEventManager.cs
- AssociatedControlConverter.cs
- HashSetEqualityComparer.cs
- Convert.cs
- MissingSatelliteAssemblyException.cs
- BitArray.cs
- _HTTPDateParse.cs
- SqlCommandAsyncResult.cs
- SerializationObjectManager.cs
- webbrowsersite.cs
- VersionedStream.cs
- ScriptControl.cs
- CompiledQueryCacheEntry.cs
- MailWriter.cs
- RegisteredScript.cs
- ReflectPropertyDescriptor.cs
- ConfigurationConverterBase.cs
- XmlSchemaSimpleTypeUnion.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SqlGatherConsumedAliases.cs
- Policy.cs
- GrammarBuilderDictation.cs
- TailCallAnalyzer.cs
- LabelLiteral.cs
- MergePropertyDescriptor.cs
- MouseButtonEventArgs.cs
- LightweightCodeGenerator.cs
- Attribute.cs
- MonthCalendar.cs
- ParameterRetriever.cs
- HttpModuleActionCollection.cs
- VirtualPathUtility.cs
- SystemUnicastIPAddressInformation.cs
- UrlMappingCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- AspNetSynchronizationContext.cs
- FrameworkElementAutomationPeer.cs
- ValueQuery.cs
- BinHexEncoding.cs
- XmlConvert.cs
- peernodestatemanager.cs
- PolyQuadraticBezierSegment.cs
- DbParameterHelper.cs
- MimeMultiPart.cs
- MetadataFile.cs
- ImageField.cs
- PolyQuadraticBezierSegment.cs
- CertificateManager.cs
- AllowedAudienceUriElementCollection.cs
- UInt32.cs
- PartialClassGenerationTask.cs
- SafeEventHandle.cs
- ShaderEffect.cs
- OdbcStatementHandle.cs
- TextDecorations.cs
- WebConfigurationHostFileChange.cs
- UnsafeMethods.cs
- XmlSchemaInfo.cs
- HtmlControl.cs
- SystemNetHelpers.cs
- SqlUtil.cs
- IndexedEnumerable.cs
- StoreContentChangedEventArgs.cs
- ImageListStreamer.cs
- MorphHelper.cs
- DataGridViewBand.cs
- FileDialogCustomPlace.cs
- XPathScanner.cs
- LayoutDump.cs
- UpdateCommandGenerator.cs
- WebDisplayNameAttribute.cs
- ConditionalAttribute.cs
- CurrencyManager.cs
- DataFormats.cs
- DoubleLink.cs
- PointAnimationUsingKeyFrames.cs
- X509Certificate2.cs
- Triangle.cs
- Object.cs
- SqlException.cs
- CacheDict.cs
- GACMembershipCondition.cs