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; ////// /// // // 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
- PropertyItemInternal.cs
- objectresult_tresulttype.cs
- FileCodeGroup.cs
- WindowsToolbar.cs
- StructureChangedEventArgs.cs
- PolyBezierSegment.cs
- WindowsRegion.cs
- DomainUpDown.cs
- XPathBinder.cs
- DataControlFieldCollection.cs
- ColorConverter.cs
- XmlElementCollection.cs
- SqlResolver.cs
- HtmlToClrEventProxy.cs
- UInt32.cs
- TextMarkerSource.cs
- AttributeData.cs
- ImageDrawing.cs
- SystemResourceHost.cs
- ProcessThread.cs
- ClientBuildManagerCallback.cs
- DateTimeUtil.cs
- TextRunProperties.cs
- DesignerProperties.cs
- XPathNavigatorKeyComparer.cs
- MultipartIdentifier.cs
- PieceNameHelper.cs
- IncrementalCompileAnalyzer.cs
- BamlLocalizableResource.cs
- UniqueEventHelper.cs
- ProviderConnectionPointCollection.cs
- AppModelKnownContentFactory.cs
- COM2Enum.cs
- COM2IProvidePropertyBuilderHandler.cs
- URLAttribute.cs
- XmlSchemaAttributeGroupRef.cs
- AsymmetricKeyExchangeDeformatter.cs
- SecurityCriticalDataForSet.cs
- DataBindEngine.cs
- RenderCapability.cs
- ExpandCollapsePatternIdentifiers.cs
- RoutedPropertyChangedEventArgs.cs
- ResourceSet.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TextParentUndoUnit.cs
- DocumentViewerHelper.cs
- ItemChangedEventArgs.cs
- BitmapEffectvisualstate.cs
- FilteredXmlReader.cs
- MenuItem.cs
- FieldAccessException.cs
- InputScopeAttribute.cs
- AsyncOperationManager.cs
- EdmConstants.cs
- StatusBarPanel.cs
- MergeFilterQuery.cs
- TypeInfo.cs
- ISCIIEncoding.cs
- StrongNameIdentityPermission.cs
- DomainConstraint.cs
- EntityDataSourceStatementEditorForm.cs
- WorkflowCompensationBehavior.cs
- DbFunctionCommandTree.cs
- SqlConnection.cs
- CustomError.cs
- querybuilder.cs
- cookie.cs
- DbMetaDataCollectionNames.cs
- MasterPage.cs
- CollectionViewGroupRoot.cs
- TimeSpanValidator.cs
- DetailsViewModeEventArgs.cs
- TextParaClient.cs
- ImageSourceConverter.cs
- FakeModelPropertyImpl.cs
- PointF.cs
- EmptyStringExpandableObjectConverter.cs
- SecurityContextSecurityTokenAuthenticator.cs
- SlipBehavior.cs
- UIElement3D.cs
- DataControlFieldHeaderCell.cs
- ComponentTray.cs
- StreamInfo.cs
- CodeTypeReferenceExpression.cs
- LineInfo.cs
- DataGridViewRowPrePaintEventArgs.cs
- GeometryCollection.cs
- StyleSelector.cs
- MergablePropertyAttribute.cs
- SQLDecimalStorage.cs
- MemberPath.cs
- WebControl.cs
- HttpException.cs
- WorkflowElementDialog.cs
- CodeDefaultValueExpression.cs
- DataGridAddNewRow.cs
- TrackingParameters.cs
- MemberInfoSerializationHolder.cs
- CharacterBuffer.cs
- VirtualPathUtility.cs