Code:
/ FX-1434 / FX-1434 / 1.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
- DocumentViewerConstants.cs
- NotImplementedException.cs
- NativeWindow.cs
- Win32MouseDevice.cs
- Token.cs
- WindowsFormsLinkLabel.cs
- Int64KeyFrameCollection.cs
- DelegateBodyWriter.cs
- LocalValueEnumerator.cs
- DataGridAutoFormatDialog.cs
- Pen.cs
- DrawingContextWalker.cs
- SessionStateContainer.cs
- FrameworkReadOnlyPropertyMetadata.cs
- _DisconnectOverlappedAsyncResult.cs
- UnescapedXmlDiagnosticData.cs
- SHA1.cs
- ImageMap.cs
- ContextBase.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- OutputCacheModule.cs
- DetailsViewRowCollection.cs
- RegexFCD.cs
- IPipelineRuntime.cs
- BamlReader.cs
- InputDevice.cs
- BuildProviderCollection.cs
- TextChangedEventArgs.cs
- _ChunkParse.cs
- Camera.cs
- XPathDocumentNavigator.cs
- ValueProviderWrapper.cs
- XpsColorContext.cs
- HttpChannelFactory.cs
- UrlMappingsModule.cs
- CodeSnippetExpression.cs
- HtmlHead.cs
- ControlParameter.cs
- List.cs
- TreeIterators.cs
- PerformanceCounterCategory.cs
- MemberDomainMap.cs
- HostingEnvironmentSection.cs
- MultilineStringConverter.cs
- PersonalizationState.cs
- WebPartCloseVerb.cs
- HttpCachePolicyBase.cs
- FactoryGenerator.cs
- FontFamily.cs
- SqlUDTStorage.cs
- HebrewNumber.cs
- AssemblyNameUtility.cs
- ManipulationDeltaEventArgs.cs
- ListGeneralPage.cs
- GridItemProviderWrapper.cs
- InputScope.cs
- FontDialog.cs
- AccessText.cs
- UserControl.cs
- SharedPersonalizationStateInfo.cs
- XmlSchemaType.cs
- WebPartPersonalization.cs
- PasswordPropertyTextAttribute.cs
- ExpressionPrefixAttribute.cs
- DesignerAdRotatorAdapter.cs
- HuffCodec.cs
- XmlSchemaFacet.cs
- CheckBox.cs
- AuthenticationService.cs
- SettingsAttributes.cs
- FormatVersion.cs
- UnsafeNativeMethods.cs
- StateInitializationDesigner.cs
- SecurityElement.cs
- ProtocolsSection.cs
- DocumentGridContextMenu.cs
- DivideByZeroException.cs
- StaticTextPointer.cs
- BoundPropertyEntry.cs
- DeploymentSectionCache.cs
- DurableOperationContext.cs
- MemoryRecordBuffer.cs
- WebUtil.cs
- WebColorConverter.cs
- PatternMatcher.cs
- WebMessageEncodingElement.cs
- RuntimeUtils.cs
- Handle.cs
- PrintDialogException.cs
- MatcherBuilder.cs
- PolicyException.cs
- DataGridBoolColumn.cs
- SrgsDocument.cs
- PropertyDescriptor.cs
- DbParameterCollection.cs
- OdbcConnectionStringbuilder.cs
- XmlAttributeCache.cs
- RegexStringValidator.cs
- Material.cs
- TopClause.cs