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
- LogicalTreeHelper.cs
- OptimalTextSource.cs
- Tile.cs
- PropertyDescriptor.cs
- LinqDataSource.cs
- Msmq.cs
- ValuePatternIdentifiers.cs
- IncrementalReadDecoders.cs
- HttpHandlerActionCollection.cs
- ResourceManager.cs
- QilPatternVisitor.cs
- IMembershipProvider.cs
- LineGeometry.cs
- OdbcFactory.cs
- Timeline.cs
- ObsoleteAttribute.cs
- _NestedSingleAsyncResult.cs
- ImageConverter.cs
- CompilerHelpers.cs
- HtmlWindowCollection.cs
- ComponentEditorPage.cs
- EntityStoreSchemaFilterEntry.cs
- CodeAccessPermission.cs
- PixelFormat.cs
- MetadataItemEmitter.cs
- SQLDouble.cs
- CasesDictionary.cs
- SetStateDesigner.cs
- SiteMap.cs
- CorrelationKey.cs
- DataMisalignedException.cs
- CodeTypeConstructor.cs
- Helper.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- EntityDataSourceValidationException.cs
- ConnectionStringsExpressionBuilder.cs
- Point3DCollectionConverter.cs
- SamlAuthenticationStatement.cs
- ToolStripDropDownItem.cs
- DbParameterHelper.cs
- Math.cs
- DecoratedNameAttribute.cs
- MetabaseSettings.cs
- Expression.DebuggerProxy.cs
- SmtpReplyReader.cs
- WebEventTraceProvider.cs
- HttpCapabilitiesEvaluator.cs
- CharUnicodeInfo.cs
- DropShadowBitmapEffect.cs
- TreeView.cs
- FileLoadException.cs
- Int32CollectionConverter.cs
- DispatcherExceptionEventArgs.cs
- PeerResolverElement.cs
- CompositeControlDesigner.cs
- ExceptionUtil.cs
- DataGridViewRowCollection.cs
- DetailsViewRow.cs
- MessageQueuePermission.cs
- SafeWaitHandle.cs
- Base64Encoder.cs
- Emitter.cs
- ResXBuildProvider.cs
- WorkflowQueuingService.cs
- VisualStyleElement.cs
- Literal.cs
- ObjectSelectorEditor.cs
- EdmPropertyAttribute.cs
- X509Utils.cs
- CertificateManager.cs
- UIElement3D.cs
- WorkflowRuntimeBehavior.cs
- FacetValueContainer.cs
- VSWCFServiceContractGenerator.cs
- DataColumn.cs
- Version.cs
- TdsParserHelperClasses.cs
- MdiWindowListStrip.cs
- unsafeIndexingFilterStream.cs
- WinInetCache.cs
- MembershipSection.cs
- DataBoundControl.cs
- SystemColorTracker.cs
- FastEncoderStatics.cs
- ZipPackage.cs
- ScriptControlManager.cs
- EncodingTable.cs
- PropertyMetadata.cs
- JoinElimination.cs
- LinkArea.cs
- IChannel.cs
- LinqExpressionNormalizer.cs
- FrameworkElementFactory.cs
- EditorZoneBase.cs
- DataServiceStreamResponse.cs
- LOSFormatter.cs
- PriorityQueue.cs
- oledbmetadatacolumnnames.cs
- MetaDataInfo.cs
- Int32CollectionValueSerializer.cs