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;
///
///
///
/// 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
- TogglePatternIdentifiers.cs
- PresentationSource.cs
- XmlSchemaObjectTable.cs
- AttributeCollection.cs
- MouseOverProperty.cs
- CodeConstructor.cs
- basenumberconverter.cs
- SymDocumentType.cs
- SerialPinChanges.cs
- WeakReferenceEnumerator.cs
- CrossAppDomainChannel.cs
- AssociatedControlConverter.cs
- BamlResourceDeserializer.cs
- GridViewColumnHeaderAutomationPeer.cs
- CachedFontFace.cs
- ParagraphResult.cs
- CompilationUnit.cs
- TempEnvironment.cs
- TextContainerHelper.cs
- SiteMapProvider.cs
- CodeDirectionExpression.cs
- PermissionSetTriple.cs
- TextWriterEngine.cs
- LambdaCompiler.Expressions.cs
- URLAttribute.cs
- BaseConfigurationRecord.cs
- CompModSwitches.cs
- BitmapImage.cs
- GridViewCommandEventArgs.cs
- SymmetricKeyWrap.cs
- WCFModelStrings.Designer.cs
- CqlParserHelpers.cs
- RequestQueue.cs
- RootContext.cs
- ActivityUtilities.cs
- SoapIncludeAttribute.cs
- InfoCardRSACryptoProvider.cs
- ReadOnlyDataSource.cs
- AudioBase.cs
- CqlQuery.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- IsolatedStorageFilePermission.cs
- SrgsSemanticInterpretationTag.cs
- Pts.cs
- ContainerVisual.cs
- ParagraphVisual.cs
- CqlParser.cs
- ProxyAssemblyNotLoadedException.cs
- AutomationProperty.cs
- DataMemberAttribute.cs
- PointF.cs
- WebPartConnectionsConnectVerb.cs
- DrawingContextWalker.cs
- CompilerGeneratedAttribute.cs
- BitmapMetadataBlob.cs
- XmlSchemaCompilationSettings.cs
- StreamResourceInfo.cs
- X509Certificate2Collection.cs
- NamespaceMapping.cs
- Button.cs
- SaveFileDialog.cs
- XmlBufferReader.cs
- RemoteAsymmetricSignatureFormatter.cs
- ViewBox.cs
- NumberFunctions.cs
- DataSvcMapFileSerializer.cs
- CompositeControl.cs
- CompilerErrorCollection.cs
- SafeRightsManagementHandle.cs
- ConnectionPoolManager.cs
- Point3DValueSerializer.cs
- CaseInsensitiveComparer.cs
- ObjectConverter.cs
- RsaSecurityTokenAuthenticator.cs
- ModelPropertyCollectionImpl.cs
- RegexStringValidator.cs
- AttributeCollection.cs
- NotificationContext.cs
- PathFigureCollectionValueSerializer.cs
- FilterException.cs
- TransformPattern.cs
- Int32Animation.cs
- UTF7Encoding.cs
- CapabilitiesState.cs
- Run.cs
- WhitespaceRule.cs
- ParallelSeparator.xaml.cs
- Underline.cs
- IsolatedStorage.cs
- ListViewInsertEventArgs.cs
- localization.cs
- SqlComparer.cs
- ColorBlend.cs
- StatusBarAutomationPeer.cs
- FileDialogPermission.cs
- VectorCollectionValueSerializer.cs
- TextInfo.cs
- ProtectedConfigurationSection.cs
- PermissionToken.cs
- ConsoleKeyInfo.cs