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
- TextFragmentEngine.cs
- PackWebResponse.cs
- EventMappingSettings.cs
- MemberInfoSerializationHolder.cs
- Quad.cs
- HttpCookieCollection.cs
- CodeArgumentReferenceExpression.cs
- XmlSchemaValidator.cs
- ListViewItem.cs
- DataGridColumnHeader.cs
- BindableTemplateBuilder.cs
- SecurityDocument.cs
- BulletedListEventArgs.cs
- FragmentNavigationEventArgs.cs
- MessageQueuePermissionEntry.cs
- WizardStepBase.cs
- SqlDeflator.cs
- xml.cs
- StorageFunctionMapping.cs
- InputReferenceExpression.cs
- DataAdapter.cs
- EmptyReadOnlyDictionaryInternal.cs
- ImageAnimator.cs
- EntitySetDataBindingList.cs
- CapabilitiesState.cs
- OleDbRowUpdatingEvent.cs
- KeyToListMap.cs
- ReceiveSecurityHeader.cs
- UpDownEvent.cs
- OdbcHandle.cs
- OneOfScalarConst.cs
- FileSystemEventArgs.cs
- RuntimeHelpers.cs
- ScriptMethodAttribute.cs
- KeyBinding.cs
- FloaterBaseParagraph.cs
- CompositionTarget.cs
- ScaleTransform.cs
- MonitorWrapper.cs
- ResourceSetExpression.cs
- XmlRootAttribute.cs
- AsymmetricKeyExchangeDeformatter.cs
- MultiView.cs
- WebBrowserNavigatingEventHandler.cs
- CommonGetThemePartSize.cs
- DependencyPropertyDescriptor.cs
- Attributes.cs
- ReadContentAsBinaryHelper.cs
- SplineKeyFrames.cs
- FacetChecker.cs
- PhonemeEventArgs.cs
- VectorCollection.cs
- Renderer.cs
- SystemIcmpV4Statistics.cs
- XmlSignatureProperties.cs
- TableColumnCollection.cs
- SamlAttribute.cs
- EventMappingSettings.cs
- UrlMappingCollection.cs
- VolatileEnlistmentState.cs
- GC.cs
- HttpModuleCollection.cs
- DrawingVisualDrawingContext.cs
- DBDataPermissionAttribute.cs
- WindowVisualStateTracker.cs
- loginstatus.cs
- UnicastIPAddressInformationCollection.cs
- ChameleonKey.cs
- NavigationProperty.cs
- UnsafeNativeMethodsCLR.cs
- EntityContainerRelationshipSetEnd.cs
- ImageField.cs
- DirectionalLight.cs
- RemotingConfigParser.cs
- DataComponentNameHandler.cs
- LambdaReference.cs
- SatelliteContractVersionAttribute.cs
- ComplexObject.cs
- SymbolEqualComparer.cs
- Scene3D.cs
- PriorityQueue.cs
- OdbcDataAdapter.cs
- DrawingBrush.cs
- VirtualizedItemPattern.cs
- CachedRequestParams.cs
- RuleProcessor.cs
- DbProviderManifest.cs
- InputBindingCollection.cs
- DataGridHelper.cs
- mil_sdk_version.cs
- HashMembershipCondition.cs
- CommonDialog.cs
- NavigatingCancelEventArgs.cs
- AlternateView.cs
- CompilerError.cs
- SecurityContext.cs
- RemotingException.cs
- DispatcherSynchronizationContext.cs
- StoragePropertyMapping.cs
- FilterQueryOptionExpression.cs