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
- XsltConvert.cs
- SecureConversationServiceElement.cs
- Rect3D.cs
- ChannelDispatcherCollection.cs
- DetailsViewPageEventArgs.cs
- PeerInvitationResponse.cs
- BindingNavigatorDesigner.cs
- ColumnMapVisitor.cs
- ZipIOModeEnforcingStream.cs
- Filter.cs
- FileLevelControlBuilderAttribute.cs
- DeviceOverridableAttribute.cs
- CompilationPass2Task.cs
- MapPathBasedVirtualPathProvider.cs
- BaseDataList.cs
- SystemUnicastIPAddressInformation.cs
- ButtonAutomationPeer.cs
- addressfiltermode.cs
- NamespaceQuery.cs
- FilterQueryOptionExpression.cs
- InvalidAsynchronousStateException.cs
- MembershipSection.cs
- WebScriptMetadataInstanceContextProvider.cs
- NodeLabelEditEvent.cs
- WindowsGraphicsWrapper.cs
- SecurityDescriptor.cs
- EntityWithKeyStrategy.cs
- LogAppendAsyncResult.cs
- WebPartEventArgs.cs
- ErrorItem.cs
- DependencyObject.cs
- NetworkInterface.cs
- TextDataBindingHandler.cs
- WindowsToolbarAsMenu.cs
- HexParser.cs
- AssemblyName.cs
- SqlErrorCollection.cs
- DataControlFieldHeaderCell.cs
- XmlSchema.cs
- InstalledVoice.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DecoderBestFitFallback.cs
- Int64AnimationUsingKeyFrames.cs
- ListViewItemEventArgs.cs
- BindingValueChangedEventArgs.cs
- WorkflowApplicationCompletedException.cs
- Speller.cs
- TabRenderer.cs
- ReadWriteSpinLock.cs
- SerializationStore.cs
- OracleFactory.cs
- InstanceCreationEditor.cs
- AssertFilter.cs
- Decoder.cs
- HttpProfileGroupBase.cs
- SelectionItemProviderWrapper.cs
- HostTimeoutsElement.cs
- Win32.cs
- ExtendedPropertyCollection.cs
- XmlSchemaInfo.cs
- XmlBindingWorker.cs
- XDRSchema.cs
- ClientApiGenerator.cs
- NativeWindow.cs
- XmlStringTable.cs
- EdmConstants.cs
- NavigationExpr.cs
- PrivilegedConfigurationManager.cs
- TaskDesigner.cs
- FileDetails.cs
- COSERVERINFO.cs
- FlowDocumentPage.cs
- MemberDomainMap.cs
- EntityDataSourceDesigner.cs
- ExpressionLexer.cs
- DesignerSerializationVisibilityAttribute.cs
- DBConcurrencyException.cs
- PagerStyle.cs
- WindowsRebar.cs
- HighContrastHelper.cs
- ContainerAction.cs
- Queue.cs
- BindingWorker.cs
- OptimizedTemplateContent.cs
- JavaScriptString.cs
- DownloadProgressEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- RectAnimation.cs
- OperationResponse.cs
- StdValidatorsAndConverters.cs
- DataConnectionHelper.cs
- SendMailErrorEventArgs.cs
- FixedTextBuilder.cs
- HttpStaticObjectsCollectionBase.cs
- CustomAttributeBuilder.cs
- WindowsGraphicsCacheManager.cs
- ByteStream.cs
- LocalizabilityAttribute.cs
- BaseCodePageEncoding.cs
- ResourceReader.cs