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
- CacheAxisQuery.cs
- NameSpaceEvent.cs
- JumpList.cs
- NativeMethods.cs
- WebServiceErrorEvent.cs
- HostUtils.cs
- StringConverter.cs
- XmlFormatExtensionAttribute.cs
- DataGridPreparingCellForEditEventArgs.cs
- _NegoState.cs
- DynamicQueryableWrapper.cs
- ProtocolInformationWriter.cs
- ExpandCollapseIsCheckedConverter.cs
- PathFigure.cs
- DuplexChannelBinder.cs
- Relationship.cs
- SettingsBindableAttribute.cs
- EntityContainerEntitySet.cs
- OracleCommandSet.cs
- RequiredFieldValidator.cs
- CqlLexer.cs
- FilteredDataSetHelper.cs
- AuthenticatedStream.cs
- ConfigurationSectionCollection.cs
- Error.cs
- PerformanceCounterLib.cs
- RemotingConfigParser.cs
- WebPartHelpVerb.cs
- AxDesigner.cs
- Signature.cs
- NameValueConfigurationElement.cs
- AsmxEndpointPickerExtension.cs
- PageCache.cs
- OdbcTransaction.cs
- SolidColorBrush.cs
- OpacityConverter.cs
- PrimitiveDataContract.cs
- TreeSet.cs
- UInt16Storage.cs
- SqlServices.cs
- WSDualHttpBindingElement.cs
- IOException.cs
- BulletDecorator.cs
- Queue.cs
- AsymmetricKeyExchangeFormatter.cs
- BitmapPalette.cs
- HitTestFilterBehavior.cs
- SqlVersion.cs
- IndicFontClient.cs
- XmlReader.cs
- VariableAction.cs
- XmlSerializerSection.cs
- MiniMapControl.xaml.cs
- PageThemeCodeDomTreeGenerator.cs
- IDispatchConstantAttribute.cs
- CapabilitiesPattern.cs
- TraversalRequest.cs
- CounterCreationDataCollection.cs
- LiteralTextParser.cs
- FontFamilyValueSerializer.cs
- ErrorWrapper.cs
- WizardPanel.cs
- FunctionParameter.cs
- Image.cs
- FileSystemWatcher.cs
- CharacterBuffer.cs
- TextEditorTables.cs
- DebugInfoExpression.cs
- Msec.cs
- ContentDisposition.cs
- CapiSymmetricAlgorithm.cs
- EntityUtil.cs
- Error.cs
- CommentEmitter.cs
- Bits.cs
- TreeNodeEventArgs.cs
- TableItemPattern.cs
- BitmapEncoder.cs
- ScrollEventArgs.cs
- TextElementCollection.cs
- XmlQueryCardinality.cs
- UnknownBitmapDecoder.cs
- XmlSchemaType.cs
- ResourceSet.cs
- ConfigPathUtility.cs
- TypeDelegator.cs
- XsltContext.cs
- FlagPanel.cs
- _NtlmClient.cs
- TextRangeEditTables.cs
- PerspectiveCamera.cs
- DataRowCollection.cs
- ChannelManager.cs
- StringSource.cs
- DebuggerAttributes.cs
- SoapReflectionImporter.cs
- SourceInterpreter.cs
- ClientRoleProvider.cs
- While.cs
- PartitionerQueryOperator.cs