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
- ListSourceHelper.cs
- ComboBoxDesigner.cs
- SurrogateEncoder.cs
- ChangesetResponse.cs
- ImageIndexConverter.cs
- LostFocusEventManager.cs
- DomainLiteralReader.cs
- HashCodeCombiner.cs
- URL.cs
- InlineUIContainer.cs
- TabControlEvent.cs
- EmptyEnumerable.cs
- StringPropertyBuilder.cs
- MenuItem.cs
- AVElementHelper.cs
- OrElse.cs
- shaperfactoryquerycacheentry.cs
- Paragraph.cs
- StandardOleMarshalObject.cs
- ShaperBuffers.cs
- Stopwatch.cs
- KeyEvent.cs
- DebugHandleTracker.cs
- PathFigureCollection.cs
- WebPartTransformerAttribute.cs
- XmlElement.cs
- QueryResponse.cs
- AutomationIdentifierGuids.cs
- SqlNodeAnnotations.cs
- WindowsUpDown.cs
- DefaultShape.cs
- StreamUpdate.cs
- DataGridState.cs
- ThreadLocal.cs
- MdImport.cs
- ControlDesigner.cs
- WindowsFont.cs
- NativeMethods.cs
- StrokeSerializer.cs
- SurrogateEncoder.cs
- NumericUpDownAccelerationCollection.cs
- GenericUriParser.cs
- CheckBox.cs
- Oid.cs
- Source.cs
- AssemblyInfo.cs
- WebControlsSection.cs
- XmlNamespaceMapping.cs
- CommandID.cs
- IncrementalReadDecoders.cs
- EncodingTable.cs
- TokenizerHelper.cs
- SmiMetaDataProperty.cs
- VectorCollectionValueSerializer.cs
- DeploymentSection.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- AudioDeviceOut.cs
- MeasureData.cs
- XmlSchemaValidationException.cs
- WebPartCatalogAddVerb.cs
- WindowsFont.cs
- ImageClickEventArgs.cs
- HebrewNumber.cs
- ManagementOperationWatcher.cs
- XappLauncher.cs
- CanonicalFontFamilyReference.cs
- WindowsTooltip.cs
- StringBlob.cs
- UrlMapping.cs
- FacetEnabledSchemaElement.cs
- ColumnCollection.cs
- PrintPreviewGraphics.cs
- MessageProtectionOrder.cs
- EditingMode.cs
- OperandQuery.cs
- EventLogPermissionEntry.cs
- LayoutEngine.cs
- sqlstateclientmanager.cs
- TransactionInformation.cs
- MsmqChannelListenerBase.cs
- ApplicationActivator.cs
- ParenExpr.cs
- ListViewItemEventArgs.cs
- ScrollPattern.cs
- MachineKeyValidationConverter.cs
- FontDialog.cs
- DataGridView.cs
- UserControl.cs
- Literal.cs
- TileBrush.cs
- AssemblyFilter.cs
- DefaultMemberAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- MultiTargetingUtil.cs
- NetSectionGroup.cs
- SelectionRangeConverter.cs
- PtsHost.cs
- BCLDebug.cs
- CompiledQueryCacheEntry.cs
- Types.cs