Code:
/ FX-1434 / FX-1434 / 1.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
- DataControlImageButton.cs
- RuntimeCompatibilityAttribute.cs
- StreamingContext.cs
- PrintDocument.cs
- TypographyProperties.cs
- SqlRecordBuffer.cs
- ImportedPolicyConversionContext.cs
- DataGridViewRowEventArgs.cs
- _StreamFramer.cs
- StylusShape.cs
- LocalizableAttribute.cs
- IdentitySection.cs
- DataGridViewCellConverter.cs
- AnnotationResource.cs
- ProfileGroupSettingsCollection.cs
- TTSEngineTypes.cs
- EventHandlersStore.cs
- DataGridColumnReorderingEventArgs.cs
- Viewport3DAutomationPeer.cs
- InfoCardProofToken.cs
- ToolStripPanelRow.cs
- InvalidCommandTreeException.cs
- DirtyTextRange.cs
- HashCodeCombiner.cs
- PermissionSetTriple.cs
- DoubleUtil.cs
- SerialReceived.cs
- WindowsSlider.cs
- EntitySetDataBindingList.cs
- NonParentingControl.cs
- NavigationEventArgs.cs
- UpdateRecord.cs
- SpecialNameAttribute.cs
- SqlNamer.cs
- sitestring.cs
- TablePatternIdentifiers.cs
- Literal.cs
- ToolStripItemCollection.cs
- ToolBarButtonDesigner.cs
- DataControlFieldHeaderCell.cs
- DataGridItem.cs
- ContentWrapperAttribute.cs
- GZipDecoder.cs
- FormatStringEditor.cs
- InputBuffer.cs
- TreeView.cs
- Invariant.cs
- MemberInfoSerializationHolder.cs
- isolationinterop.cs
- NativeDirectoryServicesQueryAPIs.cs
- TypeConverterHelper.cs
- TypeForwardedToAttribute.cs
- DataBinder.cs
- DataReceivedEventArgs.cs
- ToolboxItemCollection.cs
- TextHidden.cs
- graph.cs
- PropertyMapper.cs
- DisplayInformation.cs
- HandleCollector.cs
- ListControlDataBindingHandler.cs
- FormViewCommandEventArgs.cs
- Underline.cs
- SystemInfo.cs
- SqlDataSourceCommandEventArgs.cs
- Internal.cs
- MetadataItemEmitter.cs
- MexHttpBindingElement.cs
- SHA256.cs
- PerfService.cs
- DesignerActionTextItem.cs
- DispatcherFrame.cs
- BackgroundWorker.cs
- XamlToRtfParser.cs
- PositiveTimeSpanValidatorAttribute.cs
- BuildProviderUtils.cs
- ListViewItem.cs
- StringFreezingAttribute.cs
- SpeechRecognitionEngine.cs
- PeerResolverBindingElement.cs
- ConnectivityStatus.cs
- TemplateControlBuildProvider.cs
- ResourceIDHelper.cs
- BitStack.cs
- XmlLoader.cs
- KeyGestureConverter.cs
- CreateUserWizardStep.cs
- GenericRootAutomationPeer.cs
- RegularExpressionValidator.cs
- DataRelationCollection.cs
- RenderCapability.cs
- CommandHelper.cs
- WindowsFormsSectionHandler.cs
- XmlNamespaceDeclarationsAttribute.cs
- Int32Storage.cs
- TdsRecordBufferSetter.cs
- GridItemCollection.cs
- TransactionManager.cs
- BigInt.cs
- Int32Animation.cs