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
- RemoteHelper.cs
- EvidenceTypeDescriptor.cs
- DataGridAddNewRow.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SpotLight.cs
- DataGridViewRowsAddedEventArgs.cs
- InputDevice.cs
- SymbolEqualComparer.cs
- PersonalizableAttribute.cs
- DataGridViewCellStateChangedEventArgs.cs
- ColorConverter.cs
- StrongNameKeyPair.cs
- NamedPipeTransportSecurity.cs
- CaseExpr.cs
- AnnotationStore.cs
- AuthStoreRoleProvider.cs
- HtmlInputPassword.cs
- PropertyExpression.cs
- DetailsViewRowCollection.cs
- RefreshEventArgs.cs
- PrintPreviewControl.cs
- StubHelpers.cs
- _NestedSingleAsyncResult.cs
- HttpInputStream.cs
- HwndAppCommandInputProvider.cs
- PrinterSettings.cs
- Scripts.cs
- HttpValueCollection.cs
- FormViewCommandEventArgs.cs
- List.cs
- FormatException.cs
- DesignerContextDescriptor.cs
- SystemWebSectionGroup.cs
- Transform3DGroup.cs
- PrePrepareMethodAttribute.cs
- PageHandlerFactory.cs
- CodeRemoveEventStatement.cs
- Compress.cs
- XmlName.cs
- FormsAuthenticationCredentials.cs
- RemotingConfiguration.cs
- OleDbRowUpdatedEvent.cs
- ProfileGroupSettingsCollection.cs
- HelpKeywordAttribute.cs
- IssuanceTokenProviderBase.cs
- DropSourceBehavior.cs
- Atom10FormatterFactory.cs
- AssemblyAttributesGoHere.cs
- InheritanceAttribute.cs
- ParameterToken.cs
- HttpHandlerAction.cs
- Effect.cs
- Bold.cs
- SQLBinary.cs
- IResourceProvider.cs
- EntityDataSourceContextDisposingEventArgs.cs
- TraceContextEventArgs.cs
- XPathSelfQuery.cs
- ResetableIterator.cs
- Timer.cs
- DataBinder.cs
- DataGridViewCell.cs
- StorageMappingItemLoader.cs
- DoubleStorage.cs
- OleDbParameterCollection.cs
- PhysicalOps.cs
- ListBindableAttribute.cs
- AmbientLight.cs
- FlagsAttribute.cs
- HtmlInputRadioButton.cs
- PrintControllerWithStatusDialog.cs
- mongolianshape.cs
- ButtonPopupAdapter.cs
- FileLoadException.cs
- InProcStateClientManager.cs
- ContainerActivationHelper.cs
- IISUnsafeMethods.cs
- Guid.cs
- FontUnitConverter.cs
- MessageQueuePermissionAttribute.cs
- StylusPointProperties.cs
- ThicknessAnimation.cs
- XmlExceptionHelper.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ComponentConverter.cs
- CfgParser.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HybridDictionary.cs
- WebPartEventArgs.cs
- ListDesigner.cs
- SqlProviderManifest.cs
- DirectionalLight.cs
- ItemDragEvent.cs
- Sql8ConformanceChecker.cs
- XmlNamespaceDeclarationsAttribute.cs
- Asn1IntegerConverter.cs
- ConfigurationConverterBase.cs
- UnaryExpressionHelper.cs
- StickyNoteHelper.cs
- MenuEventArgs.cs