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
- Mappings.cs
- CodeRegionDirective.cs
- smtpconnection.cs
- XmlLanguageConverter.cs
- BindingExpressionUncommonField.cs
- VisualProxy.cs
- DataBoundLiteralControl.cs
- RtfNavigator.cs
- PrinterUnitConvert.cs
- PageThemeBuildProvider.cs
- SqlBooleanizer.cs
- DocumentApplication.cs
- ObsoleteAttribute.cs
- DisableDpiAwarenessAttribute.cs
- ArgumentValue.cs
- FileLoadException.cs
- CurrentChangingEventArgs.cs
- ConstraintEnumerator.cs
- SqlBooleanizer.cs
- XmlMapping.cs
- EventSinkHelperWriter.cs
- EditableRegion.cs
- HandlerBase.cs
- EmptyEnumerable.cs
- StructuredTypeEmitter.cs
- QilFunction.cs
- AttachInfo.cs
- ResourceSet.cs
- ForAllOperator.cs
- SQLGuidStorage.cs
- GenerateScriptTypeAttribute.cs
- EnglishPluralizationService.cs
- PrivateFontCollection.cs
- GetWinFXPath.cs
- HostedAspNetEnvironment.cs
- GC.cs
- BufferModeSettings.cs
- XmlReflectionImporter.cs
- PrintControllerWithStatusDialog.cs
- ProcessInfo.cs
- HtmlEmptyTagControlBuilder.cs
- BitmapEffectGroup.cs
- SourceFileInfo.cs
- EndPoint.cs
- SelectionProcessor.cs
- ToolStripProgressBar.cs
- FocusWithinProperty.cs
- ArrayHelper.cs
- EmptyQuery.cs
- NCryptNative.cs
- XmlEncodedRawTextWriter.cs
- SQLMembershipProvider.cs
- ClientConfigurationHost.cs
- CommandDesigner.cs
- ArrayElementGridEntry.cs
- ProcessStartInfo.cs
- Persist.cs
- ClientSideQueueItem.cs
- FileStream.cs
- DeclaredTypeValidator.cs
- ConnectionOrientedTransportElement.cs
- RuntimeHelpers.cs
- ObjectKeyFrameCollection.cs
- UriScheme.cs
- DesignerCategoryAttribute.cs
- IEnumerable.cs
- EventToken.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- ReadOnlyNameValueCollection.cs
- DataBinding.cs
- ByteRangeDownloader.cs
- ExpressionParser.cs
- InProcStateClientManager.cs
- TextParaClient.cs
- OdbcErrorCollection.cs
- SQLSingleStorage.cs
- XMLUtil.cs
- CodeSnippetTypeMember.cs
- PeerApplication.cs
- WebServiceErrorEvent.cs
- BaseCAMarshaler.cs
- SqlDataSourceAdvancedOptionsForm.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- MatrixCamera.cs
- DoubleIndependentAnimationStorage.cs
- ListSortDescription.cs
- ProxyRpc.cs
- RequestCacheValidator.cs
- linebase.cs
- LeftCellWrapper.cs
- Pointer.cs
- Types.cs
- DesignBindingPicker.cs
- WorkflowInspectionServices.cs
- HtmlShimManager.cs
- GenericTypeParameterBuilder.cs
- PasswordBoxAutomationPeer.cs
- IndependentlyAnimatedPropertyMetadata.cs
- PathSegmentCollection.cs
- DataGridViewCellValidatingEventArgs.cs