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
- TemplateKeyConverter.cs
- SymmetricAlgorithm.cs
- ChangeNode.cs
- InternalControlCollection.cs
- GlobalEventManager.cs
- SecUtil.cs
- ScriptReferenceEventArgs.cs
- MediaElement.cs
- OdbcConnectionOpen.cs
- DelegateHelpers.cs
- FixedSOMTextRun.cs
- XmlSerializerAssemblyAttribute.cs
- ExecutorLocksHeldException.cs
- MultiView.cs
- NavigationWindowAutomationPeer.cs
- EntityDataSourceColumn.cs
- ImpersonateTokenRef.cs
- Utility.cs
- SiteMapDataSource.cs
- DataColumn.cs
- FilteredDataSetHelper.cs
- ComAdminWrapper.cs
- WebPartRestoreVerb.cs
- FormViewDeleteEventArgs.cs
- SafeThreadHandle.cs
- XsdDateTime.cs
- DataGridViewRowConverter.cs
- VolatileEnlistmentState.cs
- CanExecuteRoutedEventArgs.cs
- PositiveTimeSpanValidatorAttribute.cs
- ZipIORawDataFileBlock.cs
- PageAdapter.cs
- SessionSwitchEventArgs.cs
- UriWriter.cs
- Maps.cs
- EventLogInternal.cs
- WindowClosedEventArgs.cs
- XmlSubtreeReader.cs
- AdRotator.cs
- safesecurityhelperavalon.cs
- RegexWorker.cs
- Popup.cs
- WbmpConverter.cs
- NullableLongMinMaxAggregationOperator.cs
- COM2Properties.cs
- SizeAnimationBase.cs
- InternalTypeHelper.cs
- CodeNamespaceCollection.cs
- ScriptingScriptResourceHandlerSection.cs
- Set.cs
- WindowsSysHeader.cs
- Pair.cs
- HyperlinkAutomationPeer.cs
- XmlFormatReaderGenerator.cs
- LinkArea.cs
- OleDbError.cs
- ObjectAnimationUsingKeyFrames.cs
- XPathDocumentBuilder.cs
- MutexSecurity.cs
- BulletDecorator.cs
- LOSFormatter.cs
- propertyentry.cs
- EndEvent.cs
- SamlAction.cs
- TextParaLineResult.cs
- EqualityComparer.cs
- XmlHierarchyData.cs
- CodeIdentifiers.cs
- CallTemplateAction.cs
- GridViewHeaderRowPresenter.cs
- DBConcurrencyException.cs
- StylusButtonCollection.cs
- _NTAuthentication.cs
- nulltextnavigator.cs
- Collection.cs
- GenericWebPart.cs
- SchemaReference.cs
- InvocationExpression.cs
- PatternMatcher.cs
- XmlBoundElement.cs
- PersonalizationProviderCollection.cs
- BitmapPalettes.cs
- DataTableNameHandler.cs
- PropertyIDSet.cs
- shaper.cs
- LayoutTableCell.cs
- CodeMemberEvent.cs
- DrawingBrush.cs
- _SslStream.cs
- WindowsToolbarItemAsMenuItem.cs
- EncryptedData.cs
- ValueType.cs
- sqlinternaltransaction.cs
- ContainerControl.cs
- IdentityValidationException.cs
- XmlnsDefinitionAttribute.cs
- WorkflowRuntimeServiceElement.cs
- DbgUtil.cs
- SplashScreen.cs
- IODescriptionAttribute.cs