Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CommandDevice.cs
- EditorBrowsableAttribute.cs
- XmlReflectionMember.cs
- DrawingBrush.cs
- CodeDirectionExpression.cs
- HtmlEncodedRawTextWriter.cs
- ProjectionPruner.cs
- _Win32.cs
- TimeoutValidationAttribute.cs
- DropDownButton.cs
- Quaternion.cs
- AdPostCacheSubstitution.cs
- GcSettings.cs
- DataGridSortCommandEventArgs.cs
- AssemblyInfo.cs
- TabPage.cs
- Transform3D.cs
- DataGridViewSortCompareEventArgs.cs
- WindowsStatusBar.cs
- RelationshipDetailsRow.cs
- dbdatarecord.cs
- Pkcs7Recipient.cs
- AudioLevelUpdatedEventArgs.cs
- IDispatchConstantAttribute.cs
- QueryReaderSettings.cs
- ListViewItemSelectionChangedEvent.cs
- DaylightTime.cs
- PageThemeBuildProvider.cs
- DodSequenceMerge.cs
- CardSpaceSelector.cs
- Utils.cs
- UnionCqlBlock.cs
- AsyncOperationLifetimeManager.cs
- JoinGraph.cs
- ToolStripItemEventArgs.cs
- ImageListStreamer.cs
- FrameworkRichTextComposition.cs
- NullExtension.cs
- XmlSchemaObject.cs
- PreviewPrintController.cs
- DSACryptoServiceProvider.cs
- QuotedStringFormatReader.cs
- CommandLineParser.cs
- HexParser.cs
- sortedlist.cs
- NetStream.cs
- SystemColors.cs
- DefaultValueTypeConverter.cs
- RegistryDataKey.cs
- DomainUpDown.cs
- BulletChrome.cs
- XmlSortKeyAccumulator.cs
- XmlStreamStore.cs
- AnimationTimeline.cs
- SymmetricAlgorithm.cs
- MetadataItemCollectionFactory.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SafeArchiveContext.cs
- TextRange.cs
- DefaultTraceListener.cs
- PreviewControlDesigner.cs
- DbConnectionClosed.cs
- StrongTypingException.cs
- HwndProxyElementProvider.cs
- ConfigurationSchemaErrors.cs
- Brush.cs
- CodeDomLocalizationProvider.cs
- entityreference_tresulttype.cs
- VectorAnimation.cs
- EncryptedHeaderXml.cs
- ActivityExecutionFilter.cs
- Enum.cs
- ObjectStateFormatter.cs
- XmlSchemaAppInfo.cs
- mediaeventargs.cs
- PngBitmapEncoder.cs
- MustUnderstandBehavior.cs
- HitTestDrawingContextWalker.cs
- WindowsListBox.cs
- BaseCollection.cs
- XmlAnyElementAttributes.cs
- InputLangChangeRequestEvent.cs
- TextParagraphProperties.cs
- HttpServerVarsCollection.cs
- TextDecorations.cs
- ActiveXMessageFormatter.cs
- FtpCachePolicyElement.cs
- WebEventCodes.cs
- ImageField.cs
- PriorityRange.cs
- MaskedTextBox.cs
- StorageTypeMapping.cs
- DecoderFallback.cs
- BookmarkScope.cs
- GenericRootAutomationPeer.cs
- DecimalConverter.cs
- SQLBoolean.cs
- ClientCredentialsSecurityTokenManager.cs
- ValueConversionAttribute.cs
- Thickness.cs