Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / AmbientProperties.cs / 1305376 / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewSelectedCellCollection.cs
- TextTreeInsertElementUndoUnit.cs
- CompoundFileStorageReference.cs
- CultureSpecificCharacterBufferRange.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- AttributedMetaModel.cs
- errorpatternmatcher.cs
- NumberFormatInfo.cs
- ErrorFormatter.cs
- Geometry3D.cs
- SystemInfo.cs
- TextChange.cs
- AccessViolationException.cs
- AttachInfo.cs
- CompilationLock.cs
- UrlParameterReader.cs
- SafeNativeMemoryHandle.cs
- PropertyToken.cs
- RemoteX509Token.cs
- AutoSizeComboBox.cs
- ConsumerConnectionPointCollection.cs
- sqlnorm.cs
- DataObjectEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- Exception.cs
- XmlC14NWriter.cs
- TraceHandlerErrorFormatter.cs
- AttributeSetAction.cs
- WebBrowserSiteBase.cs
- XPathDescendantIterator.cs
- BitmapDecoder.cs
- Accessible.cs
- GC.cs
- DetailsViewDeleteEventArgs.cs
- _Rfc2616CacheValidators.cs
- SizeConverter.cs
- ReadContentAsBinaryHelper.cs
- AnnotationResource.cs
- BoolExpression.cs
- ResourceWriter.cs
- QuaternionConverter.cs
- PrimaryKeyTypeConverter.cs
- TextEditorCharacters.cs
- MultiSelector.cs
- ObfuscateAssemblyAttribute.cs
- DataRowExtensions.cs
- AxHost.cs
- ParameterElementCollection.cs
- ToolboxDataAttribute.cs
- AddDataControlFieldDialog.cs
- ReceiveParametersContent.cs
- ProviderException.cs
- DrawingImage.cs
- CodeLinePragma.cs
- WebPart.cs
- ProfileGroupSettingsCollection.cs
- DataTableMapping.cs
- OdbcRowUpdatingEvent.cs
- TableParagraph.cs
- SplitterEvent.cs
- DocumentReferenceCollection.cs
- SQLInt64.cs
- X509SecurityTokenParameters.cs
- CardSpaceSelector.cs
- FormViewUpdatedEventArgs.cs
- ObjectDataSourceMethodEditor.cs
- ApplicationCommands.cs
- FragmentQueryKB.cs
- ConstraintManager.cs
- CellParagraph.cs
- ADConnectionHelper.cs
- IPGlobalProperties.cs
- Point3DConverter.cs
- PrintPageEvent.cs
- WebDescriptionAttribute.cs
- ChtmlPageAdapter.cs
- _TimerThread.cs
- AsyncStreamReader.cs
- StateBag.cs
- PropertyGeneratedEventArgs.cs
- HighlightVisual.cs
- InternalCache.cs
- AuthStoreRoleProvider.cs
- XmlUnspecifiedAttribute.cs
- Menu.cs
- WindowsSpinner.cs
- QueueProcessor.cs
- SourceFileBuildProvider.cs
- TreeChangeInfo.cs
- StorageAssociationSetMapping.cs
- AuthorizationRule.cs
- DragDeltaEventArgs.cs
- StrongName.cs
- CallbackValidator.cs
- PipelineModuleStepContainer.cs
- SHA384.cs
- TileModeValidation.cs
- InkCanvas.cs
- Asn1IntegerConverter.cs
- DesignerDataSchemaClass.cs