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
- TransformPattern.cs
- Wildcard.cs
- ClientRolePrincipal.cs
- InstanceLockTracking.cs
- SignatureHelper.cs
- SmiTypedGetterSetter.cs
- OleDbDataAdapter.cs
- MetadataItemSerializer.cs
- EncoderFallback.cs
- DataGridrowEditEndingEventArgs.cs
- FileStream.cs
- ButtonAutomationPeer.cs
- FormsAuthentication.cs
- GridLengthConverter.cs
- ProxyWebPartConnectionCollection.cs
- JavascriptXmlWriterWrapper.cs
- XmlSerializerSection.cs
- PauseStoryboard.cs
- HiddenFieldPageStatePersister.cs
- MDIWindowDialog.cs
- DXD.cs
- FontResourceCache.cs
- FilterException.cs
- NativeCompoundFileAPIs.cs
- ParallelActivityDesigner.cs
- SelectionChangedEventArgs.cs
- ClockGroup.cs
- RecognizedAudio.cs
- ThemeableAttribute.cs
- AspNetPartialTrustHelpers.cs
- SmiEventSink_Default.cs
- ChtmlTextWriter.cs
- MeasureData.cs
- NoResizeSelectionBorderGlyph.cs
- StreamedFramingRequestChannel.cs
- DockProviderWrapper.cs
- DataRelation.cs
- FunctionCommandText.cs
- XmlDocumentSerializer.cs
- BitmapEffectGroup.cs
- TextEndOfSegment.cs
- TimerEventSubscriptionCollection.cs
- SoapObjectInfo.cs
- FastPropertyAccessor.cs
- Drawing.cs
- OleDbDataAdapter.cs
- ExpressionReplacer.cs
- SspiWrapper.cs
- DataRowExtensions.cs
- DependencyObject.cs
- UnsafePeerToPeerMethods.cs
- StorageInfo.cs
- indexingfiltermarshaler.cs
- ItemsControlAutomationPeer.cs
- SortExpressionBuilder.cs
- Completion.cs
- SortQuery.cs
- httpstaticobjectscollection.cs
- Compiler.cs
- DataList.cs
- ConsoleKeyInfo.cs
- TagPrefixInfo.cs
- ClientScriptManagerWrapper.cs
- Model3D.cs
- StringArrayEditor.cs
- ToolBarButtonDesigner.cs
- RepeatEnumerable.cs
- ActiveXContainer.cs
- SafeReversePInvokeHandle.cs
- EntityEntry.cs
- StyleModeStack.cs
- ETagAttribute.cs
- WebEventTraceProvider.cs
- WeakHashtable.cs
- ILGenerator.cs
- LinkLabelLinkClickedEvent.cs
- PropertySourceInfo.cs
- _KerberosClient.cs
- TextRangeProviderWrapper.cs
- PackageRelationshipCollection.cs
- FieldAccessException.cs
- ContentOperations.cs
- RawStylusInputCustomData.cs
- PrivilegeNotHeldException.cs
- OdbcReferenceCollection.cs
- HttpServerProtocol.cs
- CompositeControl.cs
- MultiTouchSystemGestureLogic.cs
- BooleanAnimationBase.cs
- WhitespaceRuleLookup.cs
- OutputCacheProfileCollection.cs
- MissingFieldException.cs
- TeredoHelper.cs
- SystemFonts.cs
- ClosableStream.cs
- XamlSerializerUtil.cs
- ObservableCollectionDefaultValueFactory.cs
- PersonalizationStateQuery.cs
- ServicesExceptionNotHandledEventArgs.cs
- Exception.cs