Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CommonUI / System / Drawing / SystemColors.cs / 1 / SystemColors.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Drawing { using System.Diagnostics; using System; ////// /// Windows system-wide colors. Whenever possible, try to use /// SystemPens and SystemBrushes rather than SystemColors. /// public sealed class SystemColors { // not creatable... // private SystemColors() { } ////// /// The color of the filled area of an active window border. /// public static Color ActiveBorder { get { return new Color(KnownColor.ActiveBorder); } } ////// /// The color of the background of an active title bar caption. /// public static Color ActiveCaption { get { return new Color(KnownColor.ActiveCaption); } } ////// /// The color of the text of an active title bar caption. /// public static Color ActiveCaptionText { get { return new Color(KnownColor.ActiveCaptionText); } } ////// /// The color of the application workspace. The application workspace /// is the area in a multiple document view that is not being occupied /// by documents. /// public static Color AppWorkspace { get { return new Color(KnownColor.AppWorkspace); } } ////// /// Face color for three-dimensional display elements and for dialog box backgrounds. /// public static Color ButtonFace { get { return new Color(KnownColor.ButtonFace); } } ////// /// Highlight color for three-dimensional display elements (for edges facing the light source.) /// public static Color ButtonHighlight { get { return new Color(KnownColor.ButtonHighlight); } } ////// /// Shadow color for three-dimensional display elements (for edges facing away from the light source.) /// public static Color ButtonShadow { get { return new Color(KnownColor.ButtonShadow); } } ////// /// The color of the background of push buttons and other 3D objects. /// public static Color Control { get { return new Color(KnownColor.Control); } } ////// /// The color of shadows on 3D objects. /// public static Color ControlDark { get { return new Color(KnownColor.ControlDark); } } ////// /// The color of very dark shadows on 3D objects. /// public static Color ControlDarkDark { get { return new Color(KnownColor.ControlDarkDark); } } ////// /// The color of highlights on 3D objects. /// public static Color ControlLight { get { return new Color(KnownColor.ControlLight); } } ////// /// The color of very light highlights on 3D objects. /// public static Color ControlLightLight { get { return new Color(KnownColor.ControlLightLight); } } ////// /// The color of the text of push buttons and other 3D objects /// public static Color ControlText { get { return new Color(KnownColor.ControlText); } } ////// /// This color is the user-defined color of the Windows desktop. /// public static Color Desktop { get { return new Color(KnownColor.Desktop); } } ////// /// Right side color in the color gradient of an active window's title bar. /// The ActiveCaption Color specifies the left side color. /// public static Color GradientActiveCaption { get { return new Color(KnownColor.GradientActiveCaption); } } ////// /// Right side color in the color gradient of an inactive window's title bar. /// The InactiveCaption Color specifies the left side color. /// public static Color GradientInactiveCaption { get { return new Color(KnownColor.GradientInactiveCaption); } } ////// /// The color of text that is being shown in a disabled, or grayed-out /// state. /// public static Color GrayText { get { return new Color(KnownColor.GrayText); } } ////// /// The color of the background of highlighted text. This includes /// selected menu items as well as selected text. /// public static Color Highlight { get { return new Color(KnownColor.Highlight); } } ////// /// The color of the text of highlighted text. This includes /// selected menu items as well as selected text. /// public static Color HighlightText { get { return new Color(KnownColor.HighlightText); } } ////// /// The hot track color. /// public static Color HotTrack { get { return new Color(KnownColor.HotTrack); } } ////// /// The color of the filled area of an inactive window border. /// public static Color InactiveBorder { get { return new Color(KnownColor.InactiveBorder); } } ////// /// The color of the background of an inactive title bar caption. /// public static Color InactiveCaption { get { return new Color(KnownColor.InactiveCaption); } } ////// /// The color of the text of an inactive title bar caption. /// public static Color InactiveCaptionText { get { return new Color(KnownColor.InactiveCaptionText); } } ////// /// The color of the info/tool tip background. /// public static Color Info { get { return new Color(KnownColor.Info); } } ////// /// The color of the info/tool tip text. /// public static Color InfoText { get { return new Color(KnownColor.InfoText); } } ////// /// The color of the background of a menu. /// public static Color Menu { get { return new Color(KnownColor.Menu); } } ////// /// The color of the background of a menu bar. /// public static Color MenuBar { get { return new Color(KnownColor.MenuBar); } } ////// /// The color used to highlight menu items when the menu appears as a flat menu. /// The highlighted menu item is outlined with the Highlight Color. /// public static Color MenuHighlight { get { return new Color(KnownColor.MenuHighlight); } } ////// /// The color of the text on a menu. /// public static Color MenuText { get { return new Color(KnownColor.MenuText); } } ////// /// The color of the scroll bar area that is not being used by the /// thumb button. /// public static Color ScrollBar { get { return new Color(KnownColor.ScrollBar); } } ////// /// The color of the client area of a window. /// public static Color Window { get { return new Color(KnownColor.Window); } } ////// /// The color of the thin frame drawn around a window. /// public static Color WindowFrame { get { return new Color(KnownColor.WindowFrame); } } ////// /// The color of the text in the client area of a window. /// public static Color WindowText { get { return new Color(KnownColor.WindowText); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Drawing { using System.Diagnostics; using System; ////// /// Windows system-wide colors. Whenever possible, try to use /// SystemPens and SystemBrushes rather than SystemColors. /// public sealed class SystemColors { // not creatable... // private SystemColors() { } ////// /// The color of the filled area of an active window border. /// public static Color ActiveBorder { get { return new Color(KnownColor.ActiveBorder); } } ////// /// The color of the background of an active title bar caption. /// public static Color ActiveCaption { get { return new Color(KnownColor.ActiveCaption); } } ////// /// The color of the text of an active title bar caption. /// public static Color ActiveCaptionText { get { return new Color(KnownColor.ActiveCaptionText); } } ////// /// The color of the application workspace. The application workspace /// is the area in a multiple document view that is not being occupied /// by documents. /// public static Color AppWorkspace { get { return new Color(KnownColor.AppWorkspace); } } ////// /// Face color for three-dimensional display elements and for dialog box backgrounds. /// public static Color ButtonFace { get { return new Color(KnownColor.ButtonFace); } } ////// /// Highlight color for three-dimensional display elements (for edges facing the light source.) /// public static Color ButtonHighlight { get { return new Color(KnownColor.ButtonHighlight); } } ////// /// Shadow color for three-dimensional display elements (for edges facing away from the light source.) /// public static Color ButtonShadow { get { return new Color(KnownColor.ButtonShadow); } } ////// /// The color of the background of push buttons and other 3D objects. /// public static Color Control { get { return new Color(KnownColor.Control); } } ////// /// The color of shadows on 3D objects. /// public static Color ControlDark { get { return new Color(KnownColor.ControlDark); } } ////// /// The color of very dark shadows on 3D objects. /// public static Color ControlDarkDark { get { return new Color(KnownColor.ControlDarkDark); } } ////// /// The color of highlights on 3D objects. /// public static Color ControlLight { get { return new Color(KnownColor.ControlLight); } } ////// /// The color of very light highlights on 3D objects. /// public static Color ControlLightLight { get { return new Color(KnownColor.ControlLightLight); } } ////// /// The color of the text of push buttons and other 3D objects /// public static Color ControlText { get { return new Color(KnownColor.ControlText); } } ////// /// This color is the user-defined color of the Windows desktop. /// public static Color Desktop { get { return new Color(KnownColor.Desktop); } } ////// /// Right side color in the color gradient of an active window's title bar. /// The ActiveCaption Color specifies the left side color. /// public static Color GradientActiveCaption { get { return new Color(KnownColor.GradientActiveCaption); } } ////// /// Right side color in the color gradient of an inactive window's title bar. /// The InactiveCaption Color specifies the left side color. /// public static Color GradientInactiveCaption { get { return new Color(KnownColor.GradientInactiveCaption); } } ////// /// The color of text that is being shown in a disabled, or grayed-out /// state. /// public static Color GrayText { get { return new Color(KnownColor.GrayText); } } ////// /// The color of the background of highlighted text. This includes /// selected menu items as well as selected text. /// public static Color Highlight { get { return new Color(KnownColor.Highlight); } } ////// /// The color of the text of highlighted text. This includes /// selected menu items as well as selected text. /// public static Color HighlightText { get { return new Color(KnownColor.HighlightText); } } ////// /// The hot track color. /// public static Color HotTrack { get { return new Color(KnownColor.HotTrack); } } ////// /// The color of the filled area of an inactive window border. /// public static Color InactiveBorder { get { return new Color(KnownColor.InactiveBorder); } } ////// /// The color of the background of an inactive title bar caption. /// public static Color InactiveCaption { get { return new Color(KnownColor.InactiveCaption); } } ////// /// The color of the text of an inactive title bar caption. /// public static Color InactiveCaptionText { get { return new Color(KnownColor.InactiveCaptionText); } } ////// /// The color of the info/tool tip background. /// public static Color Info { get { return new Color(KnownColor.Info); } } ////// /// The color of the info/tool tip text. /// public static Color InfoText { get { return new Color(KnownColor.InfoText); } } ////// /// The color of the background of a menu. /// public static Color Menu { get { return new Color(KnownColor.Menu); } } ////// /// The color of the background of a menu bar. /// public static Color MenuBar { get { return new Color(KnownColor.MenuBar); } } ////// /// The color used to highlight menu items when the menu appears as a flat menu. /// The highlighted menu item is outlined with the Highlight Color. /// public static Color MenuHighlight { get { return new Color(KnownColor.MenuHighlight); } } ////// /// The color of the text on a menu. /// public static Color MenuText { get { return new Color(KnownColor.MenuText); } } ////// /// The color of the scroll bar area that is not being used by the /// thumb button. /// public static Color ScrollBar { get { return new Color(KnownColor.ScrollBar); } } ////// /// The color of the client area of a window. /// public static Color Window { get { return new Color(KnownColor.Window); } } ////// /// The color of the thin frame drawn around a window. /// public static Color WindowFrame { get { return new Color(KnownColor.WindowFrame); } } ////// /// The color of the text in the client area of a window. /// public static Color WindowText { get { return new Color(KnownColor.WindowText); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventLogEntry.cs
- MemberInfoSerializationHolder.cs
- TextHidden.cs
- SimpleWebHandlerParser.cs
- SchemaImporterExtensionElement.cs
- TypeProvider.cs
- DropSourceBehavior.cs
- CodeAttributeDeclaration.cs
- ViewSimplifier.cs
- HandlerFactoryCache.cs
- XpsThumbnail.cs
- GPRECT.cs
- CompareInfo.cs
- sqlpipe.cs
- BitmapMetadataBlob.cs
- DataGridAutomationPeer.cs
- DataTableClearEvent.cs
- DataTransferEventArgs.cs
- ValidationHelpers.cs
- DbModificationCommandTree.cs
- InProcStateClientManager.cs
- MenuItemStyle.cs
- SchemaElementLookUpTable.cs
- NativeActivityMetadata.cs
- ChtmlFormAdapter.cs
- TextDocumentView.cs
- SerialErrors.cs
- TypeBuilderInstantiation.cs
- ZoneButton.cs
- RegisteredHiddenField.cs
- QilCloneVisitor.cs
- LogicalTreeHelper.cs
- MessageQueueKey.cs
- cache.cs
- XmlDeclaration.cs
- ThicknessConverter.cs
- SchemaTypeEmitter.cs
- AppLevelCompilationSectionCache.cs
- XmlEncodedRawTextWriter.cs
- CancelEventArgs.cs
- PropertyValueChangedEvent.cs
- propertytag.cs
- ColumnBinding.cs
- ResourceDisplayNameAttribute.cs
- UserNameSecurityTokenProvider.cs
- AddressingVersion.cs
- OperationContractGenerationContext.cs
- DesignObjectWrapper.cs
- DefaultTextStoreTextComposition.cs
- IncrementalCompileAnalyzer.cs
- MetadataHelper.cs
- SoapElementAttribute.cs
- TextEditorLists.cs
- dtdvalidator.cs
- InvalidCastException.cs
- InputScopeAttribute.cs
- PerformanceCounterPermissionEntryCollection.cs
- ComponentSerializationService.cs
- OracleColumn.cs
- TextContainerChangeEventArgs.cs
- PageSetupDialog.cs
- GeneralTransform2DTo3D.cs
- WpfXamlMember.cs
- MaterialGroup.cs
- InfoCardTraceRecord.cs
- SamlAuthorizationDecisionClaimResource.cs
- TitleStyle.cs
- CompileLiteralTextParser.cs
- SqlStream.cs
- SecurityTokenAuthenticator.cs
- BitmapEffectInput.cs
- MD5.cs
- RoutedEventHandlerInfo.cs
- SelectionRangeConverter.cs
- Underline.cs
- VirtualPathProvider.cs
- QuinticEase.cs
- PenContext.cs
- DragEventArgs.cs
- DefaultAssemblyResolver.cs
- CallbackHandler.cs
- BinaryFormatterWriter.cs
- TableRow.cs
- CompModHelpers.cs
- httpstaticobjectscollection.cs
- SharedStream.cs
- SessionIDManager.cs
- ExpressionVisitorHelpers.cs
- XmlArrayAttribute.cs
- CommonObjectSecurity.cs
- StylusCollection.cs
- Switch.cs
- AccessibleObject.cs
- DropDownList.cs
- CookieParameter.cs
- WmfPlaceableFileHeader.cs
- AutomationTextAttribute.cs
- SqlGenericUtil.cs
- MetadataUtil.cs
- ArgumentDesigner.xaml.cs