Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CAGDesigner.cs
- MsmqTransportBindingElement.cs
- DataGridCellItemAutomationPeer.cs
- Attributes.cs
- EntityException.cs
- DataControlCommands.cs
- Gdiplus.cs
- FieldNameLookup.cs
- DesignerVerbToolStripMenuItem.cs
- Queue.cs
- HtmlControl.cs
- InputReferenceExpression.cs
- FigureParaClient.cs
- BitConverter.cs
- WebPartEditorOkVerb.cs
- HttpContext.cs
- sortedlist.cs
- GlobalizationAssembly.cs
- SqlErrorCollection.cs
- AudioFormatConverter.cs
- TileBrush.cs
- CollectionView.cs
- TemplateControlBuildProvider.cs
- RequestCachePolicy.cs
- GenericTextProperties.cs
- ProviderCollection.cs
- CurrentTimeZone.cs
- ExceptionUtil.cs
- CommandConverter.cs
- ArraySortHelper.cs
- RoleManagerSection.cs
- NameValuePair.cs
- DefaultPrintController.cs
- XamlPathDataSerializer.cs
- ZipIOExtraFieldElement.cs
- CheckBoxFlatAdapter.cs
- LocatorPartList.cs
- Point4DConverter.cs
- XsdSchemaFileEditor.cs
- TraceSource.cs
- OleDbCommandBuilder.cs
- ClientCultureInfo.cs
- FontSizeConverter.cs
- JapaneseLunisolarCalendar.cs
- UnsafeNativeMethods.cs
- SessionStateItemCollection.cs
- ConstNode.cs
- CaseStatementProjectedSlot.cs
- WorkflowInstanceTerminatedRecord.cs
- XhtmlTextWriter.cs
- BuildDependencySet.cs
- TimeZone.cs
- DbReferenceCollection.cs
- Adorner.cs
- XmlObjectSerializer.cs
- ValidationErrorEventArgs.cs
- DummyDataSource.cs
- InfiniteTimeSpanConverter.cs
- FeatureSupport.cs
- TypeName.cs
- HtmlElement.cs
- precedingsibling.cs
- XamlTypeMapperSchemaContext.cs
- CAGDesigner.cs
- ISCIIEncoding.cs
- RTLAwareMessageBox.cs
- InlineObject.cs
- Utils.cs
- FileChangesMonitor.cs
- UrlPath.cs
- XmlILCommand.cs
- ParserContext.cs
- CatalogPartChrome.cs
- ClientRequest.cs
- MimeObjectFactory.cs
- DesignerSerializationOptionsAttribute.cs
- AnnotationAdorner.cs
- AssertFilter.cs
- HorizontalAlignConverter.cs
- BaseProcessProtocolHandler.cs
- WebColorConverter.cs
- _ChunkParse.cs
- TextViewBase.cs
- TemplateKeyConverter.cs
- XmlDataSourceView.cs
- CacheHelper.cs
- XmlHierarchicalEnumerable.cs
- NoPersistProperty.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- MemberProjectedSlot.cs
- Native.cs
- FontStretches.cs
- XhtmlBasicListAdapter.cs
- ArrayElementGridEntry.cs
- MDIWindowDialog.cs
- CodeTypeParameter.cs
- dataprotectionpermissionattribute.cs
- FieldNameLookup.cs
- DSACryptoServiceProvider.cs
- MappingItemCollection.cs