Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WeakKeyDictionary.cs
- NavigationWindow.cs
- XmlSchemaComplexType.cs
- ReaderContextStackData.cs
- XmlSchemaExporter.cs
- TextServicesManager.cs
- PropertyChangedEventArgs.cs
- ScriptingRoleServiceSection.cs
- CommentAction.cs
- Transform.cs
- LoginUtil.cs
- BitmapEncoder.cs
- WebPartUserCapability.cs
- CommandLibraryHelper.cs
- ExpressionTextBox.xaml.cs
- BuildManager.cs
- NullableIntAverageAggregationOperator.cs
- XmlParser.cs
- UidManager.cs
- XXXOnTypeBuilderInstantiation.cs
- WeakRefEnumerator.cs
- TypeNameConverter.cs
- XmlSchemaGroup.cs
- Grant.cs
- SchemaEntity.cs
- WebPartTransformer.cs
- SharedStatics.cs
- XPathItem.cs
- OleDbConnectionInternal.cs
- BaseParaClient.cs
- GraphicsState.cs
- CssTextWriter.cs
- Filter.cs
- MouseWheelEventArgs.cs
- ToolConsole.cs
- DashStyle.cs
- EntityModelSchemaGenerator.cs
- BasicExpressionVisitor.cs
- OrderByQueryOptionExpression.cs
- ControlBuilder.cs
- StatusBarPanelClickEvent.cs
- CryptoProvider.cs
- NameValuePair.cs
- WebPartVerbCollection.cs
- ObjectViewListener.cs
- ColorBuilder.cs
- ComNativeDescriptor.cs
- DataObjectFieldAttribute.cs
- UpWmlPageAdapter.cs
- TemplatedMailWebEventProvider.cs
- TextParagraphProperties.cs
- StorageRoot.cs
- Attributes.cs
- ExpressionEditor.cs
- TrackingProvider.cs
- PageAsyncTaskManager.cs
- X509Certificate2Collection.cs
- OdbcCommand.cs
- UriParserTemplates.cs
- ProfileInfo.cs
- DebugViewWriter.cs
- ProtocolsConfigurationEntry.cs
- BindingValueChangedEventArgs.cs
- DataBoundControlHelper.cs
- SmtpLoginAuthenticationModule.cs
- WorkflowExecutor.cs
- QueryAccessibilityHelpEvent.cs
- SerializationException.cs
- UshortList2.cs
- MultiDataTrigger.cs
- RequestUriProcessor.cs
- Equal.cs
- SplineKeyFrames.cs
- VsPropertyGrid.cs
- TextInfo.cs
- SecurityIdentifierElementCollection.cs
- SoapAttributeAttribute.cs
- TaiwanCalendar.cs
- UInt32.cs
- Int64AnimationBase.cs
- PrimitiveXmlSerializers.cs
- ParameterDataSourceExpression.cs
- Vector.cs
- ComponentTray.cs
- CodeCompiler.cs
- ToolstripProfessionalRenderer.cs
- LogSwitch.cs
- XmlQueryCardinality.cs
- BinaryConverter.cs
- EndpointDiscoveryMetadata.cs
- FloaterParaClient.cs
- DataPagerFieldCollection.cs
- ExternalException.cs
- ReadOnlyPropertyMetadata.cs
- UserInitiatedNavigationPermission.cs
- QueueProcessor.cs
- DataGridViewBindingCompleteEventArgs.cs
- ManifestSignedXml.cs
- ModelPropertyDescriptor.cs
- RemoteWebConfigurationHost.cs