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
- NativeMethods.cs
- MessageQueueTransaction.cs
- HMACSHA512.cs
- CuspData.cs
- RegexTree.cs
- PrePrepareMethodAttribute.cs
- KeyPressEvent.cs
- SetterBase.cs
- AnonymousIdentificationModule.cs
- SQLMoneyStorage.cs
- DataSourceCacheDurationConverter.cs
- BindingContext.cs
- HttpModuleCollection.cs
- EpmCustomContentWriterNodeData.cs
- MenuDesigner.cs
- ConfigurationValidatorAttribute.cs
- WebScriptMetadataFormatter.cs
- EntityClassGenerator.cs
- NewItemsContextMenuStrip.cs
- ConfigXmlElement.cs
- MimeWriter.cs
- unitconverter.cs
- ElasticEase.cs
- SuppressIldasmAttribute.cs
- FormViewUpdateEventArgs.cs
- Group.cs
- SqlTriggerContext.cs
- EntityDataSourceChangedEventArgs.cs
- ObjectMemberMapping.cs
- FactoryRecord.cs
- clipboard.cs
- BeginEvent.cs
- WsdlBuildProvider.cs
- WebPartDisplayMode.cs
- XmlSerializationGeneratedCode.cs
- DateTimeParse.cs
- ProgressBarAutomationPeer.cs
- CultureNotFoundException.cs
- RoleBoolean.cs
- SettingsPropertyNotFoundException.cs
- ProviderMetadata.cs
- BoolExpression.cs
- FixedElement.cs
- cookiecontainer.cs
- GradientBrush.cs
- AnchoredBlock.cs
- IPPacketInformation.cs
- SecurityTokenAttachmentMode.cs
- PolyQuadraticBezierSegment.cs
- ProtocolsConfigurationEntry.cs
- DesignConnection.cs
- XmlSchemaChoice.cs
- COM2TypeInfoProcessor.cs
- TopClause.cs
- Permission.cs
- ServiceObjectContainer.cs
- Blend.cs
- ItemsChangedEventArgs.cs
- VisualStyleTypesAndProperties.cs
- basenumberconverter.cs
- CollectionViewProxy.cs
- ChannelHandler.cs
- TypeConverterHelper.cs
- FlowLayoutPanelDesigner.cs
- TextInfo.cs
- __ComObject.cs
- DiagnosticsConfigurationHandler.cs
- SessionIDManager.cs
- HttpException.cs
- XmlAttributeCollection.cs
- TimerElapsedEvenArgs.cs
- Pen.cs
- TextContainerHelper.cs
- MenuScrollingVisibilityConverter.cs
- Operator.cs
- DescendantQuery.cs
- CellPartitioner.cs
- DateTimeFormat.cs
- RC2.cs
- CacheAxisQuery.cs
- OperationInvokerTrace.cs
- ChineseLunisolarCalendar.cs
- SchemaInfo.cs
- comcontractssection.cs
- _NestedSingleAsyncResult.cs
- PriorityBindingExpression.cs
- ObjectDataSourceChooseMethodsPanel.cs
- OpCodes.cs
- DataException.cs
- AutomationEvent.cs
- HttpListenerResponse.cs
- DictionaryContent.cs
- PartialCachingControl.cs
- PropertyGridEditorPart.cs
- PostBackOptions.cs
- OverflowException.cs
- UnsafeNativeMethods.cs
- BinaryConverter.cs
- XmlQueryTypeFactory.cs
- Boolean.cs