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
- Window.cs
- RIPEMD160Managed.cs
- ModifiableIteratorCollection.cs
- OperationFormatter.cs
- MappingItemCollection.cs
- cookie.cs
- WebPartExportVerb.cs
- DataSourceView.cs
- PhoneCall.cs
- TextSelectionHighlightLayer.cs
- TableItemProviderWrapper.cs
- SchemaImporterExtension.cs
- WorkflowFileItem.cs
- ResourceType.cs
- TransportSecurityProtocolFactory.cs
- AssemblyResourceLoader.cs
- CalendarAutomationPeer.cs
- EventDriven.cs
- PriorityQueue.cs
- DBConnectionString.cs
- SchemaElement.cs
- SessionPageStatePersister.cs
- IBuiltInEvidence.cs
- Cell.cs
- Random.cs
- InstancePersistenceCommand.cs
- _NetRes.cs
- SynchronizedCollection.cs
- JsonByteArrayDataContract.cs
- TextWriter.cs
- QueueProcessor.cs
- FieldCollectionEditor.cs
- ProcessInfo.cs
- PageRouteHandler.cs
- SqlWriter.cs
- EntityStoreSchemaFilterEntry.cs
- TriState.cs
- XhtmlBasicPhoneCallAdapter.cs
- QueryResult.cs
- ProtocolsConfiguration.cs
- Roles.cs
- GcHandle.cs
- Span.cs
- EventProviderClassic.cs
- DataBoundControl.cs
- TypeUsageBuilder.cs
- TypeConverter.cs
- ApplicationSecurityManager.cs
- BindingFormattingDialog.cs
- ProtectedProviderSettings.cs
- httpapplicationstate.cs
- SkewTransform.cs
- ThicknessAnimationBase.cs
- OpenTypeLayout.cs
- CheckBoxList.cs
- CompoundFileIOPermission.cs
- Byte.cs
- DesignerForm.cs
- MonitoringDescriptionAttribute.cs
- DateTimeFormat.cs
- CodeTryCatchFinallyStatement.cs
- DataReceivedEventArgs.cs
- LifetimeServices.cs
- Tracking.cs
- ObjectFullSpanRewriter.cs
- Random.cs
- PageThemeParser.cs
- SectionInput.cs
- InstanceHandleConflictException.cs
- SystemWebExtensionsSectionGroup.cs
- AsymmetricCryptoHandle.cs
- SafeLibraryHandle.cs
- QueryAccessibilityHelpEvent.cs
- HtmlTable.cs
- DbTypeMap.cs
- ServiceSecurityContext.cs
- DataObjectFieldAttribute.cs
- NameValueSectionHandler.cs
- TrackingServices.cs
- DataGridDesigner.cs
- DependencyPropertyAttribute.cs
- ErrorHandlerFaultInfo.cs
- ResourcesBuildProvider.cs
- ScriptControlManager.cs
- FormatterServices.cs
- SqlCacheDependencyDatabaseCollection.cs
- PropertyPathConverter.cs
- InstanceData.cs
- EntityDesignerUtils.cs
- RouteItem.cs
- CellParaClient.cs
- WindowsGraphics.cs
- ScriptingRoleServiceSection.cs
- SqlProfileProvider.cs
- _SslStream.cs
- PreviewPrintController.cs
- TemplateColumn.cs
- Matrix3DStack.cs
- ListBoxAutomationPeer.cs
- contentDescriptor.cs