Code:
/ FX-1434 / FX-1434 / 1.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
- TextElementEnumerator.cs
- XPathSelectionIterator.cs
- FileNameEditor.cs
- CompensateDesigner.cs
- LocatorManager.cs
- OpCodes.cs
- CSharpCodeProvider.cs
- TreeNodeSelectionProcessor.cs
- remotingproxy.cs
- Crc32Helper.cs
- AppSettingsExpressionBuilder.cs
- ThousandthOfEmRealDoubles.cs
- PointValueSerializer.cs
- XmlDictionaryReaderQuotas.cs
- XD.cs
- RegexParser.cs
- MetadataArtifactLoaderCompositeResource.cs
- TransportSecurityBindingElement.cs
- RootDesignerSerializerAttribute.cs
- EndPoint.cs
- TrackBarRenderer.cs
- PrivacyNoticeElement.cs
- ByteStreamBufferedMessageData.cs
- CodeGroup.cs
- DesignerOptionService.cs
- NullableLongMinMaxAggregationOperator.cs
- PeerNameResolver.cs
- ExpressionPrefixAttribute.cs
- TdsEnums.cs
- InvalidFilterCriteriaException.cs
- FontSource.cs
- StylusButton.cs
- HMACSHA512.cs
- Crc32Helper.cs
- InvalidCastException.cs
- SegmentInfo.cs
- FileNotFoundException.cs
- FormatConvertedBitmap.cs
- SubtreeProcessor.cs
- PeerHelpers.cs
- LayoutEvent.cs
- URLAttribute.cs
- CodeArrayCreateExpression.cs
- HttpResponse.cs
- AutomationPropertyInfo.cs
- XmlCDATASection.cs
- UrlMappingsModule.cs
- DropShadowBitmapEffect.cs
- RefExpr.cs
- CompoundFileIOPermission.cs
- OneOfTypeConst.cs
- DecimalConverter.cs
- BidPrivateBase.cs
- DesignerSerializationVisibilityAttribute.cs
- RemotingException.cs
- BufferModeSettings.cs
- FlowLayout.cs
- InstanceHandle.cs
- PropertyGeneratedEventArgs.cs
- SafeUserTokenHandle.cs
- AccessedThroughPropertyAttribute.cs
- PublisherIdentityPermission.cs
- Encoding.cs
- UserPersonalizationStateInfo.cs
- LocatorPart.cs
- Location.cs
- SafeNativeMethods.cs
- SqlDataSourceSelectingEventArgs.cs
- TextTabProperties.cs
- PreProcessInputEventArgs.cs
- CheckPair.cs
- RefType.cs
- FontWeightConverter.cs
- MemoryStream.cs
- ControlIdConverter.cs
- Localizer.cs
- BaseValidator.cs
- ClickablePoint.cs
- WebRequestModuleElement.cs
- HeaderUtility.cs
- Set.cs
- PrintPreviewGraphics.cs
- ThumbButtonInfo.cs
- XamlPointCollectionSerializer.cs
- TargetException.cs
- RewritingPass.cs
- XmlSignatureManifest.cs
- MapPathBasedVirtualPathProvider.cs
- FileUtil.cs
- HandledEventArgs.cs
- Set.cs
- GridViewUpdateEventArgs.cs
- CallSiteHelpers.cs
- SmtpException.cs
- ProviderSettings.cs
- SafeEventLogWriteHandle.cs
- SelectedDatesCollection.cs
- C14NUtil.cs
- ComponentDispatcherThread.cs
- IntSecurity.cs