Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcParameter.cs
- Point3D.cs
- ExtractedStateEntry.cs
- BufferedGraphicsContext.cs
- CryptoApi.cs
- BeginEvent.cs
- LocalFileSettingsProvider.cs
- SoapSchemaMember.cs
- SymDocumentType.cs
- Soap.cs
- AppDomainProtocolHandler.cs
- ProxyWebPart.cs
- NameValueSectionHandler.cs
- AdobeCFFWrapper.cs
- HttpCookie.cs
- DispatchWrapper.cs
- TextOptionsInternal.cs
- ModelFunctionTypeElement.cs
- SchemaImporter.cs
- ResolveResponseInfo.cs
- ExecutionContext.cs
- Soap12ProtocolReflector.cs
- RefType.cs
- FormatException.cs
- TripleDES.cs
- HideDisabledControlAdapter.cs
- Debugger.cs
- Msec.cs
- PersonalizableTypeEntry.cs
- TreeNodeBindingDepthConverter.cs
- UiaCoreProviderApi.cs
- TokenBasedSet.cs
- TypeHelper.cs
- SQLInt16Storage.cs
- Image.cs
- PassportAuthenticationModule.cs
- SiteMapNodeItem.cs
- XmlC14NWriter.cs
- ToolStripSettings.cs
- RangeContentEnumerator.cs
- FormClosedEvent.cs
- IISUnsafeMethods.cs
- ParameterCollection.cs
- MenuScrollingVisibilityConverter.cs
- Resources.Designer.cs
- HtmlListAdapter.cs
- HostingEnvironmentSection.cs
- DataSourceGroupCollection.cs
- LicenseException.cs
- DiagnosticStrings.cs
- ColumnMapTranslator.cs
- EdgeModeValidation.cs
- WSHttpBindingCollectionElement.cs
- OdbcEnvironmentHandle.cs
- JsonDeserializer.cs
- ColorTransformHelper.cs
- AuthorizationRule.cs
- Cursor.cs
- ZoneLinkButton.cs
- XmlSchemaImporter.cs
- SizeChangedEventArgs.cs
- NotifyIcon.cs
- ProtocolElement.cs
- Operators.cs
- DataGridRowClipboardEventArgs.cs
- ContextMenuService.cs
- InheritanceAttribute.cs
- TdsParser.cs
- EntitySet.cs
- SQLDoubleStorage.cs
- SignedXmlDebugLog.cs
- COM2ICategorizePropertiesHandler.cs
- PerformanceCounterPermissionEntry.cs
- KnownTypesProvider.cs
- BaseCollection.cs
- controlskin.cs
- JavaScriptSerializer.cs
- BitmapEffectCollection.cs
- WebPartsPersonalization.cs
- Scripts.cs
- RewritingPass.cs
- DeploymentSectionCache.cs
- Empty.cs
- LinkLabelLinkClickedEvent.cs
- DecimalAnimationBase.cs
- HelpInfo.cs
- ColumnResizeUndoUnit.cs
- ItemCheckedEvent.cs
- TextServicesDisplayAttribute.cs
- SQLInt64.cs
- DiscoveryExceptionDictionary.cs
- BooleanExpr.cs
- CodeDomExtensionMethods.cs
- HMACSHA256.cs
- Opcode.cs
- LocalValueEnumerator.cs
- DbProviderConfigurationHandler.cs
- TextEvent.cs
- CompositeClientFormatter.cs
- CellParagraph.cs