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
- CompModSwitches.cs
- BindingExpression.cs
- SqlStream.cs
- SurrogateSelector.cs
- UMPAttributes.cs
- Emitter.cs
- DateTimeOffsetStorage.cs
- unsafenativemethodsother.cs
- SubstitutionList.cs
- DeploymentSection.cs
- Version.cs
- HashCodeCombiner.cs
- TimeSpanValidatorAttribute.cs
- StringResourceManager.cs
- Part.cs
- Attributes.cs
- TreeViewItemAutomationPeer.cs
- XmlCharCheckingReader.cs
- PerspectiveCamera.cs
- RowVisual.cs
- Button.cs
- DataGridItem.cs
- SplitContainer.cs
- EventBindingService.cs
- EventLogPermission.cs
- TriggerBase.cs
- PriorityRange.cs
- DataColumnCollection.cs
- DataTableNewRowEvent.cs
- ToolBar.cs
- NonBatchDirectoryCompiler.cs
- MethodBuilderInstantiation.cs
- ThemeableAttribute.cs
- Resources.Designer.cs
- CacheVirtualItemsEvent.cs
- ToolboxItemAttribute.cs
- PackagingUtilities.cs
- CalculatedColumn.cs
- CompositeFontParser.cs
- PersonalizationDictionary.cs
- BlurEffect.cs
- Buffer.cs
- HttpDictionary.cs
- ObjectKeyFrameCollection.cs
- DoubleLink.cs
- DesignSurfaceEvent.cs
- FileSystemEnumerable.cs
- SafeArchiveContext.cs
- StorageMappingItemCollection.cs
- Encoder.cs
- DrawToolTipEventArgs.cs
- ScriptResourceAttribute.cs
- WebConfigurationManager.cs
- EmissiveMaterial.cs
- CryptographicAttribute.cs
- DataGridViewRow.cs
- ExpressionBuilderCollection.cs
- ToolTipService.cs
- ListViewGroupConverter.cs
- Timer.cs
- VectorAnimation.cs
- FeatureSupport.cs
- ToolBarButtonClickEvent.cs
- Material.cs
- SmtpReplyReader.cs
- Attributes.cs
- IxmlLineInfo.cs
- StringWriter.cs
- SecurityAlgorithmSuiteConverter.cs
- CompensableActivity.cs
- ReferenceConverter.cs
- Logging.cs
- WebErrorHandler.cs
- SolidColorBrush.cs
- NamedPipeDuplicateContext.cs
- TableAdapterManagerGenerator.cs
- MetadataItemSerializer.cs
- SqlDependency.cs
- GridViewCommandEventArgs.cs
- SwitchLevelAttribute.cs
- OracleRowUpdatingEventArgs.cs
- MemoryFailPoint.cs
- SwitchLevelAttribute.cs
- BindingExpression.cs
- SamlAuthorizationDecisionClaimResource.cs
- CurrencyManager.cs
- BindingList.cs
- JsonServiceDocumentSerializer.cs
- DbDataRecord.cs
- RadioButton.cs
- QueryStringParameter.cs
- OleDbParameter.cs
- DispatchWrapper.cs
- SqlCommandSet.cs
- TransformDescriptor.cs
- OleDbPropertySetGuid.cs
- Label.cs
- CommandField.cs
- ApplicationSecurityManager.cs
- ComplexPropertyEntry.cs