Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. //------------------------------------------------------------------------------ ///// 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
- clipboard.cs
- LineInfo.cs
- XmlSerializer.cs
- PropertyEmitter.cs
- ContentFileHelper.cs
- AppSettingsExpressionBuilder.cs
- UIElement.cs
- TypeSemantics.cs
- SurrogateDataContract.cs
- RecordManager.cs
- ContentDesigner.cs
- IisTraceWebEventProvider.cs
- XmlFormatExtensionAttribute.cs
- MemberCollection.cs
- ExtentKey.cs
- HitTestFilterBehavior.cs
- QueryAccessibilityHelpEvent.cs
- ListSortDescription.cs
- GraphicsContext.cs
- OrderByQueryOptionExpression.cs
- FixedStringLookup.cs
- Application.cs
- FtpCachePolicyElement.cs
- ModifierKeysValueSerializer.cs
- CatalogPartChrome.cs
- InkCollectionBehavior.cs
- CounterCreationData.cs
- SoapClientMessage.cs
- SourceFilter.cs
- GeneralTransform.cs
- panel.cs
- RewritingProcessor.cs
- StrongNamePublicKeyBlob.cs
- ToggleButtonAutomationPeer.cs
- XamlWriterExtensions.cs
- PropertyTab.cs
- COM2Enum.cs
- SqlUtil.cs
- TransactionScope.cs
- PasswordDeriveBytes.cs
- InputLangChangeEvent.cs
- EventLogSession.cs
- DrawingImage.cs
- AnnotationService.cs
- DocumentPageTextView.cs
- StylusLogic.cs
- RadioButtonBaseAdapter.cs
- TableLayoutSettingsTypeConverter.cs
- DesignerSerializationVisibilityAttribute.cs
- OracleConnectionStringBuilder.cs
- PrimarySelectionGlyph.cs
- ColorInterpolationModeValidation.cs
- ThrowHelper.cs
- ClusterSafeNativeMethods.cs
- ExpandoObject.cs
- ScriptRef.cs
- GrowingArray.cs
- PassportAuthenticationModule.cs
- DataGridViewTextBoxEditingControl.cs
- InvalidateEvent.cs
- NamespaceQuery.cs
- SqlClientWrapperSmiStream.cs
- BindingMemberInfo.cs
- ResizingMessageFilter.cs
- QueryConverter.cs
- RelationshipManager.cs
- BreakSafeBase.cs
- AsyncSerializedWorker.cs
- DynamicPropertyReader.cs
- RotateTransform.cs
- DebugView.cs
- AnimationTimeline.cs
- WithStatement.cs
- ScrollChrome.cs
- ActivityAction.cs
- XmlElementAttribute.cs
- _KerberosClient.cs
- MouseGestureValueSerializer.cs
- HostUtils.cs
- ToolStripContentPanel.cs
- FormsAuthenticationUser.cs
- Page.cs
- MouseGestureValueSerializer.cs
- EventEntry.cs
- TypeUnloadedException.cs
- ParsedAttributeCollection.cs
- MemberInitExpression.cs
- KeyBinding.cs
- WindowsSolidBrush.cs
- OleDbErrorCollection.cs
- WindowsListViewScroll.cs
- Frame.cs
- XmlSchemaValidationException.cs
- LoginView.cs
- WindowsFont.cs
- TypefaceCollection.cs
- SqlProcedureAttribute.cs
- DataGridViewLayoutData.cs
- DistinctQueryOperator.cs
- Random.cs