Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LambdaCompiler.Binary.cs
- TabRenderer.cs
- Debug.cs
- AuthStoreRoleProvider.cs
- SmtpReplyReaderFactory.cs
- EventEntry.cs
- UIElement.cs
- RuntimeConfigLKG.cs
- ObfuscationAttribute.cs
- HashSetEqualityComparer.cs
- WebDescriptionAttribute.cs
- BuildProviderCollection.cs
- UInt32.cs
- MediaPlayerState.cs
- HttpListenerRequestUriBuilder.cs
- DbExpressionRules.cs
- InstanceDescriptor.cs
- PropertyTabChangedEvent.cs
- EdmSchemaError.cs
- SystemUdpStatistics.cs
- StylusPointDescription.cs
- IdentityValidationException.cs
- DataGrid.cs
- BuildProviderAppliesToAttribute.cs
- QuadraticEase.cs
- ByeOperationCD1AsyncResult.cs
- MemoryPressure.cs
- CloseCollectionAsyncResult.cs
- SimpleRecyclingCache.cs
- OLEDB_Util.cs
- EventlogProvider.cs
- OverflowException.cs
- BasicExpandProvider.cs
- GridViewDeletedEventArgs.cs
- RawStylusSystemGestureInputReport.cs
- _RequestLifetimeSetter.cs
- SqlDataSourceEnumerator.cs
- MissingSatelliteAssemblyException.cs
- DateTimeOffset.cs
- LogStore.cs
- TextTreeObjectNode.cs
- ObjectSpanRewriter.cs
- DomainUpDown.cs
- WebConfigurationManager.cs
- DataSpaceManager.cs
- WCFBuildProvider.cs
- FixedSOMFixedBlock.cs
- Operator.cs
- WebBrowserNavigatingEventHandler.cs
- ResourcePool.cs
- ManagedCodeMarkers.cs
- CompletedAsyncResult.cs
- TargetException.cs
- ArraySubsetEnumerator.cs
- DeclarationUpdate.cs
- PartialClassGenerationTaskInternal.cs
- Version.cs
- SchemaEntity.cs
- ClientBuildManager.cs
- ReferenceEqualityComparer.cs
- Codec.cs
- SqlMethodTransformer.cs
- HierarchicalDataSourceControl.cs
- StrongNamePublicKeyBlob.cs
- translator.cs
- ControlIdConverter.cs
- SelectionItemProviderWrapper.cs
- _UriTypeConverter.cs
- XmlSchemaDatatype.cs
- NumberSubstitution.cs
- diagnosticsswitches.cs
- UIElementParagraph.cs
- PlainXmlSerializer.cs
- SingleKeyFrameCollection.cs
- ChtmlTextWriter.cs
- XPathDocumentNavigator.cs
- ContextProperty.cs
- FormsAuthenticationEventArgs.cs
- GridItemCollection.cs
- Exceptions.cs
- cookiecollection.cs
- PeerApplicationLaunchInfo.cs
- Win32MouseDevice.cs
- DrawingImage.cs
- ExpressionBindings.cs
- LayoutEvent.cs
- CLSCompliantAttribute.cs
- EndOfStreamException.cs
- TemplatePropertyEntry.cs
- TextEditorThreadLocalStore.cs
- PropertyConverter.cs
- CssClassPropertyAttribute.cs
- BaseComponentEditor.cs
- URL.cs
- ILGenerator.cs
- ModelTreeManager.cs
- ConnectionPointGlyph.cs
- DesignerOptionService.cs
- MultipleViewProviderWrapper.cs
- NaturalLanguageHyphenator.cs