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;
///
///
///
/// Provides ambient property values to top-level controls.
///
///
//
// 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;
///
///
///
/// Gets the ambient BackColor, or Color.Empty if there is none.
///
///
public Color BackColor {
get {
return backColor;
}
set {
backColor = value;
}
}
///
///
///
/// Gets the ambient BackColor, or null if there is none.
///
///
public Cursor Cursor {
get {
return cursor;
}
set {
cursor = value;
}
}
///
///
///
/// Gets the ambient Font, or null if there is none.
///
///
public Font Font {
get {
return font;
}
set {
font = value;
}
}
///
///
///
/// Gets the ambient ForeColor, or Color.Empty if there is none.
///
///
public Color ForeColor {
get {
return foreColor;
}
set {
foreColor = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
///
///
///
/// Provides ambient property values to top-level controls.
///
///
//
// 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;
///
///
///
/// Gets the ambient BackColor, or Color.Empty if there is none.
///
///
public Color BackColor {
get {
return backColor;
}
set {
backColor = value;
}
}
///
///
///
/// Gets the ambient BackColor, or null if there is none.
///
///
public Cursor Cursor {
get {
return cursor;
}
set {
cursor = value;
}
}
///
///
///
/// Gets the ambient Font, or null if there is none.
///
///
public Font Font {
get {
return font;
}
set {
font = value;
}
}
///
///
///
/// Gets the ambient ForeColor, or Color.Empty if there is none.
///
///
public Color ForeColor {
get {
return foreColor;
}
set {
foreColor = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataSourceCache.cs
- TreeWalker.cs
- StylusPlugInCollection.cs
- SimpleHandlerFactory.cs
- _NegoState.cs
- ButtonColumn.cs
- CheckBoxField.cs
- ImageCodecInfoPrivate.cs
- HMACSHA1.cs
- FontSourceCollection.cs
- EnvelopedPkcs7.cs
- StorageEntityContainerMapping.cs
- IndentedTextWriter.cs
- ControlBindingsConverter.cs
- PageCatalogPartDesigner.cs
- PersistenceIOParticipant.cs
- CompilationUnit.cs
- UndirectedGraph.cs
- SoapSchemaMember.cs
- FixUp.cs
- OpacityConverter.cs
- DuplicateDetector.cs
- ClientTargetCollection.cs
- FieldToken.cs
- MatrixAnimationBase.cs
- ToolZone.cs
- BasePattern.cs
- CharStorage.cs
- TabControlEvent.cs
- CalendarDay.cs
- _BasicClient.cs
- DateTimeConverter2.cs
- Attributes.cs
- KeyNotFoundException.cs
- ScopedKnownTypes.cs
- PhysicalAddress.cs
- Int16.cs
- ToolBar.cs
- RemotingServices.cs
- XmlBoundElement.cs
- RegexFCD.cs
- ThaiBuddhistCalendar.cs
- CustomAttributeBuilder.cs
- SqlDataSourceCache.cs
- OutputCacheProviderCollection.cs
- TaskFileService.cs
- ChannelBinding.cs
- DateTimeConverter.cs
- ReadOnlyCollectionBuilder.cs
- XsdSchemaFileEditor.cs
- TypeHelper.cs
- ShaderRenderModeValidation.cs
- NonClientArea.cs
- InfoCardSymmetricAlgorithm.cs
- UnionCodeGroup.cs
- DefaultValidator.cs
- ValidatorCompatibilityHelper.cs
- TreeNode.cs
- _ListenerRequestStream.cs
- ModelFunctionTypeElement.cs
- InsufficientMemoryException.cs
- WindowsGraphicsCacheManager.cs
- LocalizationParserHooks.cs
- QueryableDataSource.cs
- NumberSubstitution.cs
- _Semaphore.cs
- CachedResourceDictionaryExtension.cs
- assertwrapper.cs
- TextTreeObjectNode.cs
- CompilerCollection.cs
- DataSourceControl.cs
- GridViewSelectEventArgs.cs
- EncryptedReference.cs
- ServiceMemoryGates.cs
- UrlPath.cs
- WebCategoryAttribute.cs
- IteratorFilter.cs
- Point4D.cs
- NonSerializedAttribute.cs
- TextRangeSerialization.cs
- NumericUpDown.cs
- AnonymousIdentificationSection.cs
- TableProvider.cs
- InkCanvasInnerCanvas.cs
- FamilyMap.cs
- NoClickablePointException.cs
- ProcessModelInfo.cs
- Assert.cs
- Point3DIndependentAnimationStorage.cs
- SubMenuStyleCollection.cs
- X509Certificate2Collection.cs
- ParameterBinding.cs
- StringBuilder.cs
- DataGridViewColumnTypeEditor.cs
- WmiInstallComponent.cs
- DateTimeOffsetAdapter.cs
- DefaultCommandConverter.cs
- ValueTable.cs
- ContentFilePart.cs
- TransactionFlowOption.cs