Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / AmbientProperties.cs / 1305376 / 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. //------------------------------------------------------------------------------ ///// Gets the ambient ForeColor, or Color.Empty if there is none. /// ///// 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./// 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
- XsltOutput.cs
- MultiBinding.cs
- COM2ExtendedTypeConverter.cs
- isolationinterop.cs
- TriggerAction.cs
- SqlClientMetaDataCollectionNames.cs
- ListBase.cs
- SmtpTransport.cs
- PathGradientBrush.cs
- GlobalizationAssembly.cs
- DummyDataSource.cs
- IncrementalReadDecoders.cs
- BamlMapTable.cs
- ExtensionSimplifierMarkupObject.cs
- FamilyTypefaceCollection.cs
- QilInvokeLateBound.cs
- RefExpr.cs
- IISMapPath.cs
- OperationAbortedException.cs
- InvalidFilterCriteriaException.cs
- Rijndael.cs
- ResourceDisplayNameAttribute.cs
- ClusterRegistryConfigurationProvider.cs
- SmiEventSink_DeferedProcessing.cs
- LambdaExpression.cs
- InterleavedZipPartStream.cs
- ConsoleKeyInfo.cs
- DefaultHttpHandler.cs
- _RequestCacheProtocol.cs
- SurrogateSelector.cs
- ConfigXmlText.cs
- VisualCollection.cs
- OciEnlistContext.cs
- ExtensionQuery.cs
- Adorner.cs
- CatalogZone.cs
- XMLUtil.cs
- SafeArrayTypeMismatchException.cs
- MonitoringDescriptionAttribute.cs
- ContextItemManager.cs
- SuppressIldasmAttribute.cs
- CodeGotoStatement.cs
- SecurityUtils.cs
- DataGridViewAutoSizeModeEventArgs.cs
- AvTraceDetails.cs
- SecurityCriticalDataForSet.cs
- TableProviderWrapper.cs
- RelationshipConstraintValidator.cs
- RelatedImageListAttribute.cs
- AuthenticationService.cs
- DbParameterHelper.cs
- CompositeActivityTypeDescriptor.cs
- SafeHandles.cs
- EventRoute.cs
- FileDialogCustomPlacesCollection.cs
- RelationshipEndCollection.cs
- ConcatQueryOperator.cs
- ParameterCollection.cs
- ToolStripGripRenderEventArgs.cs
- UdpMessageProperty.cs
- StateMachineHistory.cs
- HijriCalendar.cs
- OutgoingWebRequestContext.cs
- HttpCookie.cs
- EventLogPermission.cs
- KeyManager.cs
- ArrayElementGridEntry.cs
- DesignerMetadata.cs
- CompositeKey.cs
- CodeGroup.cs
- Stack.cs
- SortKey.cs
- SafeFindHandle.cs
- Highlights.cs
- altserialization.cs
- XmlSchemaExporter.cs
- DirectionalLight.cs
- InternalResources.cs
- MissingFieldException.cs
- NotificationContext.cs
- UrlMappingsSection.cs
- IPHostEntry.cs
- FileDialogCustomPlacesCollection.cs
- ResourceReferenceKeyNotFoundException.cs
- DataGridViewHeaderCell.cs
- Size3DConverter.cs
- RelationshipConstraintValidator.cs
- EventItfInfo.cs
- XmlSchemaExternal.cs
- DefaultHttpHandler.cs
- SerializationStore.cs
- FileLogRecordStream.cs
- CngAlgorithmGroup.cs
- HandlerElementCollection.cs
- DocumentViewerHelper.cs
- ValueOfAction.cs
- PropertyValueUIItem.cs
- ColumnBinding.cs
- BinaryKeyIdentifierClause.cs
- DomainUpDown.cs