Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DateTimeOffsetStorage.cs
- SchemaDeclBase.cs
- XmlSchemaComplexContent.cs
- QilXmlWriter.cs
- FlagsAttribute.cs
- WindowsFormsHost.cs
- SimpleMailWebEventProvider.cs
- CriticalExceptions.cs
- IssuerInformation.cs
- DetailsViewCommandEventArgs.cs
- CharEnumerator.cs
- Ref.cs
- GenericIdentity.cs
- NameSpaceExtractor.cs
- StateMachineSubscriptionManager.cs
- FileNameEditor.cs
- MetadataUtilsSmi.cs
- PopupEventArgs.cs
- NumericUpDown.cs
- StreamGeometry.cs
- NumericUpDownAccelerationCollection.cs
- EventWaitHandle.cs
- RemotingAttributes.cs
- DbConnectionClosed.cs
- WorkflowMarkupElementEventArgs.cs
- ConnectionConsumerAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- SimpleMailWebEventProvider.cs
- FixedHyperLink.cs
- OleDbConnectionInternal.cs
- PointHitTestResult.cs
- WindowsSlider.cs
- XNodeValidator.cs
- ProfileService.cs
- SmiXetterAccessMap.cs
- ComponentConverter.cs
- Number.cs
- LogicalChannel.cs
- externdll.cs
- XmlDataSourceView.cs
- ComponentSerializationService.cs
- CompiledRegexRunnerFactory.cs
- CompositeDesignerAccessibleObject.cs
- PolyBezierSegmentFigureLogic.cs
- ToolTipService.cs
- EnumValidator.cs
- WindowsClientElement.cs
- TextProviderWrapper.cs
- EventLogSession.cs
- HostingEnvironmentSection.cs
- ContainerParaClient.cs
- ScalarOps.cs
- BufferModesCollection.cs
- HtmlInputControl.cs
- Trace.cs
- GridPattern.cs
- RegistryDataKey.cs
- ScriptingJsonSerializationSection.cs
- ScrollItemPatternIdentifiers.cs
- GeometryModel3D.cs
- isolationinterop.cs
- TimersDescriptionAttribute.cs
- SynchronizedPool.cs
- ListBox.cs
- Stack.cs
- ApplyHostConfigurationBehavior.cs
- DbConnectionPoolOptions.cs
- CheckableControlBaseAdapter.cs
- Ref.cs
- WebBrowserNavigatedEventHandler.cs
- ServiceModelStringsVersion1.cs
- figurelengthconverter.cs
- figurelengthconverter.cs
- UserControl.cs
- ActiveDocumentEvent.cs
- ObjectStateManagerMetadata.cs
- NetStream.cs
- HostProtectionException.cs
- PrimarySelectionAdorner.cs
- AutoGeneratedFieldProperties.cs
- ToolBar.cs
- Effect.cs
- PrintEvent.cs
- UntypedNullExpression.cs
- SessionStateItemCollection.cs
- InplaceBitmapMetadataWriter.cs
- SoapAttributeAttribute.cs
- AddInProcess.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EncoderNLS.cs
- SpeechRecognitionEngine.cs
- BitmapData.cs
- ConfigViewGenerator.cs
- ImageField.cs
- SiteMembershipCondition.cs
- SqlReorderer.cs
- SecurityManager.cs
- ExceptionHelpers.cs
- formatstringdialog.cs
- FullTrustAssemblyCollection.cs