Code:
/ DotNET / DotNET / 8.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; ////// /// // // 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. // Copyright (c) Microsoft Corporation. All rights reserved./// 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
- HyperLinkStyle.cs
- NamedObjectList.cs
- DictionaryTraceRecord.cs
- DesignerOptionService.cs
- FtpCachePolicyElement.cs
- ProfileManager.cs
- DictionarySurrogate.cs
- TextTreeUndoUnit.cs
- LocatorPart.cs
- NamespaceQuery.cs
- AsyncResult.cs
- HMACSHA512.cs
- RegexCaptureCollection.cs
- WebResourceAttribute.cs
- RepeaterItem.cs
- PointAnimationClockResource.cs
- DocumentGridPage.cs
- GlyphsSerializer.cs
- SecurityProtocolCorrelationState.cs
- basecomparevalidator.cs
- EffectiveValueEntry.cs
- FileVersionInfo.cs
- Ref.cs
- DbMetaDataFactory.cs
- DataServiceQueryContinuation.cs
- SqlAliaser.cs
- MouseButton.cs
- SaveFileDialog.cs
- UrlMappingsModule.cs
- ImageListUtils.cs
- NavigationPropertyEmitter.cs
- ProfilePropertySettings.cs
- FontStyles.cs
- UIElementCollection.cs
- ToolStripLabel.cs
- ControlIdConverter.cs
- ByteBufferPool.cs
- ZipIOExtraField.cs
- MessageBox.cs
- InternalSafeNativeMethods.cs
- MobileControlBuilder.cs
- DbParameterCollectionHelper.cs
- OneOfConst.cs
- EventTask.cs
- SmtpFailedRecipientsException.cs
- LogExtentCollection.cs
- IWorkflowDebuggerService.cs
- VisualBrush.cs
- CodeArrayCreateExpression.cs
- ReadOnlyTernaryTree.cs
- ToolStripPanelRow.cs
- CodeConstructor.cs
- messageonlyhwndwrapper.cs
- SoundPlayerAction.cs
- FilterElement.cs
- CryptoHelper.cs
- Dynamic.cs
- XmlSchemaCollection.cs
- _AutoWebProxyScriptEngine.cs
- CodeDefaultValueExpression.cs
- SocketAddress.cs
- ObjectIDGenerator.cs
- FontInfo.cs
- CheckedPointers.cs
- VisualStyleInformation.cs
- ArithmeticException.cs
- ZipIOExtraFieldZip64Element.cs
- SchemaAttDef.cs
- XDRSchema.cs
- SqlNotificationRequest.cs
- HtmlSelectionListAdapter.cs
- Animatable.cs
- DesignUtil.cs
- EventEntry.cs
- MouseDevice.cs
- TypeDependencyAttribute.cs
- ModuleElement.cs
- WorkflowTransactionService.cs
- _ConnectStream.cs
- AssociationSetMetadata.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- MinimizableAttributeTypeConverter.cs
- LicenseManager.cs
- MouseButtonEventArgs.cs
- SqlDataSourceStatusEventArgs.cs
- BrowserTree.cs
- _NestedSingleAsyncResult.cs
- XmlElementAttributes.cs
- AmbientEnvironment.cs
- EntityRecordInfo.cs
- String.cs
- Dictionary.cs
- MDIControlStrip.cs
- GeometryModel3D.cs
- DataGridBoundColumn.cs
- PropertyNames.cs
- AlphaSortedEnumConverter.cs
- EarlyBoundInfo.cs
- DefaultObjectMappingItemCollection.cs
- AutomationElementCollection.cs