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
- ResourceExpressionBuilder.cs
- CodeBinaryOperatorExpression.cs
- FontUnit.cs
- EmissiveMaterial.cs
- PathNode.cs
- WebServiceBindingAttribute.cs
- _NegotiateClient.cs
- AppendHelper.cs
- SafeReadContext.cs
- DataGridViewLayoutData.cs
- PolicyChain.cs
- MasterPageParser.cs
- PeerResolverSettings.cs
- StickyNoteContentControl.cs
- ColorConvertedBitmap.cs
- ToolStripDesignerAvailabilityAttribute.cs
- StaticFileHandler.cs
- TemplatedAdorner.cs
- QilValidationVisitor.cs
- Byte.cs
- ImageMapEventArgs.cs
- BaseServiceProvider.cs
- TableAutomationPeer.cs
- WhitespaceRuleLookup.cs
- XmlSchemaSimpleTypeUnion.cs
- StartUpEventArgs.cs
- ReferencedType.cs
- XmlILStorageConverter.cs
- DocumentApplicationJournalEntry.cs
- Group.cs
- SecurityUtils.cs
- ClientRoleProvider.cs
- StaticResourceExtension.cs
- StructuredType.cs
- ActivityMarkupSerializer.cs
- FontStyles.cs
- MissingFieldException.cs
- RequestedSignatureDialog.cs
- InteropTrackingRecord.cs
- FileDataSourceCache.cs
- MessageFormatterConverter.cs
- Base64Decoder.cs
- FileDialogCustomPlace.cs
- TextEditorCharacters.cs
- mactripleDES.cs
- FontFamily.cs
- userdatakeys.cs
- IdnMapping.cs
- DataRelation.cs
- CompareValidator.cs
- RelationshipDetailsCollection.cs
- FormsAuthenticationEventArgs.cs
- TypedDataSetSchemaImporterExtension.cs
- ScriptDescriptor.cs
- Calendar.cs
- MatrixKeyFrameCollection.cs
- EntityDesignerUtils.cs
- TypeValidationEventArgs.cs
- SafeCryptHandles.cs
- PartBasedPackageProperties.cs
- VScrollProperties.cs
- CapabilitiesAssignment.cs
- PropertyManager.cs
- CustomAssemblyResolver.cs
- LocalizedNameDescriptionPair.cs
- LinearQuaternionKeyFrame.cs
- ProfileSettings.cs
- InternalRelationshipCollection.cs
- StatusStrip.cs
- PropertyGridView.cs
- dbenumerator.cs
- Expression.cs
- SetterBaseCollection.cs
- BitmapEffectInputData.cs
- CopyEncoder.cs
- SmiEventSink_Default.cs
- EntityDataSourceWrapperCollection.cs
- ProcessHostMapPath.cs
- GridViewColumnCollection.cs
- BulletedListEventArgs.cs
- FilterableAttribute.cs
- ConstraintEnumerator.cs
- RTTrackingProfile.cs
- User.cs
- GridViewDeletedEventArgs.cs
- EntityClientCacheKey.cs
- XPathDocumentBuilder.cs
- BulletDecorator.cs
- QilValidationVisitor.cs
- ProxyAttribute.cs
- EntityDataSourceConfigureObjectContext.cs
- ServiceDescriptions.cs
- PublishLicense.cs
- ComplexBindingPropertiesAttribute.cs
- MarshalDirectiveException.cs
- WmlLiteralTextAdapter.cs
- SspiHelper.cs
- Win32.cs
- VariantWrapper.cs
- UInt16Converter.cs