Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ ///// 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
- Transform.cs
- Vector3DKeyFrameCollection.cs
- DataGridViewMethods.cs
- User.cs
- safex509handles.cs
- DataBindingHandlerAttribute.cs
- DataColumnCollection.cs
- BuiltInExpr.cs
- XmlCharCheckingReader.cs
- RefreshPropertiesAttribute.cs
- OletxEnlistment.cs
- MarginsConverter.cs
- DelegatingTypeDescriptionProvider.cs
- SqlCommand.cs
- Authorization.cs
- ThemeInfoAttribute.cs
- OleAutBinder.cs
- GreaterThan.cs
- ListViewInsertedEventArgs.cs
- WindowCollection.cs
- ContextMarshalException.cs
- DateTimeSerializationSection.cs
- TextReader.cs
- MediaPlayerState.cs
- UnmanagedMarshal.cs
- BinaryParser.cs
- Underline.cs
- FormsAuthentication.cs
- MailWebEventProvider.cs
- diagnosticsswitches.cs
- DbConnectionPoolIdentity.cs
- IntPtr.cs
- DataRelationPropertyDescriptor.cs
- WindowsToolbar.cs
- Configuration.cs
- PropertyNames.cs
- WebPartChrome.cs
- ConfigurationSettings.cs
- KeyValuePairs.cs
- Canvas.cs
- UrlParameterReader.cs
- contentDescriptor.cs
- DetailsViewPagerRow.cs
- EntityContainerEntitySet.cs
- FilteredDataSetHelper.cs
- DomainUpDown.cs
- TemplateColumn.cs
- MethodImplAttribute.cs
- NameValueConfigurationElement.cs
- SecurityException.cs
- TreeViewImageIndexConverter.cs
- EmbossBitmapEffect.cs
- EventLogPermission.cs
- DataGrid.cs
- Stroke.cs
- BufferBuilder.cs
- DataGridAddNewRow.cs
- ObjectHandle.cs
- StreamUpdate.cs
- DetailsViewPagerRow.cs
- BlockUIContainer.cs
- PatternMatcher.cs
- ProfileService.cs
- ClientSideQueueItem.cs
- BinaryObjectReader.cs
- TransformerInfo.cs
- RuntimeHelpers.cs
- Focus.cs
- WebRequestModuleElement.cs
- ColorMatrix.cs
- ZipPackage.cs
- WebPartZoneAutoFormat.cs
- PageAsyncTaskManager.cs
- Ipv6Element.cs
- NativeMethodsOther.cs
- CustomBindingElementCollection.cs
- CategoryAttribute.cs
- GridViewAutoFormat.cs
- DocumentApplication.cs
- _SSPISessionCache.cs
- CalendarButton.cs
- XPathEmptyIterator.cs
- XmlElementAttribute.cs
- ByteFacetDescriptionElement.cs
- OneOfTypeConst.cs
- ColorContext.cs
- CmsInterop.cs
- RemoteWebConfigurationHostServer.cs
- DocumentViewerHelper.cs
- XmlSchemaException.cs
- Comparer.cs
- StorageModelBuildProvider.cs
- BitmapEffectDrawing.cs
- SqlTrackingWorkflowInstance.cs
- DataGridRelationshipRow.cs
- DBDataPermission.cs
- IncrementalHitTester.cs
- UnauthorizedAccessException.cs
- CorrelationActionMessageFilter.cs
- SerializationStore.cs