Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- QueryHandler.cs
- ProcessProtocolHandler.cs
- ValidatedControlConverter.cs
- WindowsListViewItem.cs
- AdornerPresentationContext.cs
- Brushes.cs
- DataGridViewRowsAddedEventArgs.cs
- HashHelper.cs
- StreamedWorkflowDefinitionContext.cs
- TextRangeEditLists.cs
- WhitespaceRule.cs
- MeasurementDCInfo.cs
- QueueProcessor.cs
- FastPropertyAccessor.cs
- LeafCellTreeNode.cs
- XmlArrayItemAttribute.cs
- MemoryStream.cs
- FrameworkElementFactoryMarkupObject.cs
- DataTableTypeConverter.cs
- ConnectionManager.cs
- FixedTextBuilder.cs
- LongPath.cs
- CodeExpressionRuleDeclaration.cs
- DataGridViewAdvancedBorderStyle.cs
- CodeExporter.cs
- TemplateBindingExpressionConverter.cs
- PaperSize.cs
- ConfigurationLockCollection.cs
- OutOfMemoryException.cs
- FontDialog.cs
- StylusSystemGestureEventArgs.cs
- LogManagementAsyncResult.cs
- Vector3DAnimation.cs
- XmlValueConverter.cs
- GetWorkflowTree.cs
- EdmScalarPropertyAttribute.cs
- WmlSelectionListAdapter.cs
- Certificate.cs
- AccessViolationException.cs
- Nodes.cs
- MemoryFailPoint.cs
- SingleResultAttribute.cs
- OuterGlowBitmapEffect.cs
- CatalogUtil.cs
- XhtmlTextWriter.cs
- ProtocolsConfigurationHandler.cs
- SchemaTableOptionalColumn.cs
- CompositeTypefaceMetrics.cs
- EntityDescriptor.cs
- ErasingStroke.cs
- EventMetadata.cs
- ItemsPanelTemplate.cs
- DecimalFormatter.cs
- PeerNearMe.cs
- BmpBitmapEncoder.cs
- MatrixTransform.cs
- XmlLoader.cs
- ISessionStateStore.cs
- LineBreak.cs
- InternalRelationshipCollection.cs
- Msec.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- MeshGeometry3D.cs
- XappLauncher.cs
- WsdlContractConversionContext.cs
- HMACSHA1.cs
- CheckBoxPopupAdapter.cs
- FileResponseElement.cs
- DataFieldCollectionEditor.cs
- SerializationEventsCache.cs
- WebPartConnectionsConnectVerb.cs
- SafeNativeMethods.cs
- TextEditorTables.cs
- ContainerFilterService.cs
- SessionStateItemCollection.cs
- ValidationService.cs
- ReflectionHelper.cs
- CorrelationRequestContext.cs
- SharedUtils.cs
- Opcode.cs
- _LoggingObject.cs
- ActivityMarkupSerializationProvider.cs
- NonSerializedAttribute.cs
- XpsS0ValidatingLoader.cs
- EncryptedPackage.cs
- Vector3DKeyFrameCollection.cs
- ImageIndexConverter.cs
- CompositeActivityCodeGenerator.cs
- TypedReference.cs
- UInt32.cs
- LightweightEntityWrapper.cs
- TimeSpanStorage.cs
- SqlDataSourceAdvancedOptionsForm.cs
- ServiceControllerDesigner.cs
- TypeUtils.cs
- QuaternionRotation3D.cs
- OpenTypeLayout.cs
- ContextActivityUtils.cs
- ErrorStyle.cs
- PropertyEmitter.cs