Code:
/ DotNET / DotNET / 8.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
- BinaryCommonClasses.cs
- InterleavedZipPartStream.cs
- DefaultObjectMappingItemCollection.cs
- RoleBoolean.cs
- sqlpipe.cs
- WindowsListViewItem.cs
- HttpListenerException.cs
- LockRecoveryTask.cs
- Timer.cs
- SoapIgnoreAttribute.cs
- XmlUtil.cs
- XMLUtil.cs
- DataSourceHelper.cs
- Error.cs
- CommonBehaviorsSection.cs
- HttpCapabilitiesEvaluator.cs
- LayoutInformation.cs
- TemplateField.cs
- ToolTipAutomationPeer.cs
- PackUriHelper.cs
- SystemIcons.cs
- ReadWriteObjectLock.cs
- mansign.cs
- SqlMethodCallConverter.cs
- CodePageEncoding.cs
- LinqExpressionNormalizer.cs
- ScriptManagerProxy.cs
- Paragraph.cs
- DataPagerCommandEventArgs.cs
- SchemaNotation.cs
- MediaPlayerState.cs
- SectionVisual.cs
- LinkTarget.cs
- StringSorter.cs
- PlanCompiler.cs
- PeerNameResolver.cs
- DocumentAutomationPeer.cs
- Rule.cs
- RadioButtonList.cs
- OleStrCAMarshaler.cs
- NameValueCollection.cs
- CodeCatchClauseCollection.cs
- DateTime.cs
- DataGrid.cs
- UseLicense.cs
- ListSortDescription.cs
- Utils.cs
- ListItemConverter.cs
- DigitShape.cs
- PointAnimationUsingPath.cs
- elementinformation.cs
- Formatter.cs
- OrthographicCamera.cs
- BitSet.cs
- SoapAttributes.cs
- TreeView.cs
- SafeTimerHandle.cs
- EdmProperty.cs
- ProcessHostServerConfig.cs
- ECDsa.cs
- UserControl.cs
- Authorization.cs
- EntityDataSourceStatementEditorForm.cs
- RelationHandler.cs
- Int32Storage.cs
- BamlLocalizableResource.cs
- ExternalDataExchangeClient.cs
- LineSegment.cs
- StructuredType.cs
- TextTreeRootNode.cs
- formatter.cs
- AssociationSetMetadata.cs
- TextEditorSpelling.cs
- ConfigXmlSignificantWhitespace.cs
- SortableBindingList.cs
- TextServicesHost.cs
- ServiceDeploymentInfo.cs
- ViewRendering.cs
- UniqueEventHelper.cs
- LinqMaximalSubtreeNominator.cs
- SiteMapHierarchicalDataSourceView.cs
- EncoderFallback.cs
- DataGridViewControlCollection.cs
- PermissionSetTriple.cs
- ScaleTransform3D.cs
- DataGridViewDataErrorEventArgs.cs
- StickyNoteHelper.cs
- FlowSwitchLink.cs
- ContractSearchPattern.cs
- CachedResourceDictionaryExtension.cs
- SmtpMail.cs
- OptimizedTemplateContentHelper.cs
- CodeDOMProvider.cs
- BitmapImage.cs
- BuildProvider.cs
- StrongNameUtility.cs
- MembershipSection.cs
- PieceNameHelper.cs
- Number.cs
- PtsPage.cs