Code:
/ DotNET / DotNET / 8.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
- SurrogateSelector.cs
- SingleAnimationUsingKeyFrames.cs
- ConfigXmlText.cs
- OneToOneMappingSerializer.cs
- Random.cs
- TimeoutValidationAttribute.cs
- wgx_render.cs
- VoiceInfo.cs
- MediaContextNotificationWindow.cs
- ImageCodecInfo.cs
- ProcessHost.cs
- SchemaElement.cs
- TextServicesPropertyRanges.cs
- HttpVersion.cs
- OnOperation.cs
- XPathAncestorQuery.cs
- ReversePositionQuery.cs
- OletxVolatileEnlistment.cs
- BitmapInitialize.cs
- ProxyElement.cs
- EdmItemError.cs
- WebReferencesBuildProvider.cs
- DbMetaDataFactory.cs
- AssertSection.cs
- AxisAngleRotation3D.cs
- X509Chain.cs
- ParallelTimeline.cs
- WindowsTooltip.cs
- EntityDataSourceUtil.cs
- JavaScriptObjectDeserializer.cs
- Block.cs
- ListBindingConverter.cs
- InputLanguageEventArgs.cs
- _NegotiateClient.cs
- DataGridViewColumnEventArgs.cs
- LocatorBase.cs
- UpdatePanelControlTrigger.cs
- FrameworkObject.cs
- StyleXamlParser.cs
- WarningException.cs
- GuidelineCollection.cs
- MimeXmlImporter.cs
- VisemeEventArgs.cs
- WinEventHandler.cs
- __ComObject.cs
- HtmlInputButton.cs
- PopupControlService.cs
- UrlPropertyAttribute.cs
- UTF32Encoding.cs
- ByeMessageCD1.cs
- XmlDataSourceDesigner.cs
- SQlBooleanStorage.cs
- NetworkInformationPermission.cs
- SharedDp.cs
- WriteableBitmap.cs
- LayoutManager.cs
- SessionEndedEventArgs.cs
- KeyFrames.cs
- HttpProfileBase.cs
- ReturnType.cs
- TypeInitializationException.cs
- Parsers.cs
- ModelTypeConverter.cs
- VBCodeProvider.cs
- CodeValidator.cs
- SqlConnectionHelper.cs
- OdbcHandle.cs
- RenderTargetBitmap.cs
- ScriptMethodAttribute.cs
- ConfigPathUtility.cs
- RevocationPoint.cs
- DataGridViewComboBoxColumn.cs
- HtmlObjectListAdapter.cs
- XsdValidatingReader.cs
- HttpCacheParams.cs
- SQLInt16Storage.cs
- RequiredFieldValidator.cs
- Activation.cs
- BinaryKeyIdentifierClause.cs
- XPathNodePointer.cs
- CrossContextChannel.cs
- RefExpr.cs
- MatcherBuilder.cs
- CodeBinaryOperatorExpression.cs
- DrawingServices.cs
- DiscriminatorMap.cs
- TdsValueSetter.cs
- StringSorter.cs
- XmlCountingReader.cs
- XmlSchemaException.cs
- ComponentEditorPage.cs
- ExtendedPropertyCollection.cs
- HttpRequest.cs
- NameSpaceExtractor.cs
- SendingRequestEventArgs.cs
- WebPartHeaderCloseVerb.cs
- OrderingQueryOperator.cs
- ClientTarget.cs
- ServiceOperation.cs
- ComplexPropertyEntry.cs