Compartir a través de


VSColorTable Class

Provides colors that are used for Visual Studio display elements.

Inheritance Hierarchy

Object
  ProfessionalColorTable
    Microsoft.VisualStudio.VSColorTable

Namespace:  Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio (in Microsoft.VisualStudio.dll)

Syntax

'Declaration
Public Class VSColorTable _
    Inherits ProfessionalColorTable
public class VSColorTable : ProfessionalColorTable
public ref class VSColorTable : public ProfessionalColorTable
type VSColorTable =  
    class 
        inherit ProfessionalColorTable 
    end
public class VSColorTable extends ProfessionalColorTable

The VSColorTable type exposes the following members.

Properties

  Name Description
Public property ButtonCheckedGradientBegin Gets the starting color of the gradient used when the button is checked. (Overrides ProfessionalColorTable.ButtonCheckedGradientBegin.)
Public property ButtonCheckedGradientEnd Gets the end color of the gradient used when the button is checked. (Overrides ProfessionalColorTable.ButtonCheckedGradientEnd.)
Public property ButtonCheckedGradientMiddle Gets the middle color of the gradient used when the button is checked. (Overrides ProfessionalColorTable.ButtonCheckedGradientMiddle.)
Public property ButtonCheckedHighlight Gets the solid color used when the button is checked. (Inherited from ProfessionalColorTable.)
Public property ButtonCheckedHighlightBorder Gets the border color to use with ButtonCheckedHighlight. (Inherited from ProfessionalColorTable.)
Public property ButtonFace Gets the color used to draw the face of a 3-D element.
Public property ButtonPressedBorder Gets the border color to use with the ButtonPressedGradientBegin, ButtonPressedGradientMiddle, and ButtonPressedGradientEnd colors. (Overrides ProfessionalColorTable.ButtonPressedBorder.)
Public property ButtonPressedGradientBegin Gets the starting color of the gradient used when the button is pressed. (Overrides ProfessionalColorTable.ButtonPressedGradientBegin.)
Public property ButtonPressedGradientEnd Gets the end color of the gradient used when the button is pressed. (Overrides ProfessionalColorTable.ButtonPressedGradientEnd.)
Public property ButtonPressedGradientMiddle Gets the middle color of the gradient used when the button is pressed. (Overrides ProfessionalColorTable.ButtonPressedGradientMiddle.)
Public property ButtonPressedHighlight Gets the solid color used when the button is pressed. (Inherited from ProfessionalColorTable.)
Public property ButtonPressedHighlightBorder Gets the border color to use with ButtonPressedHighlight. (Inherited from ProfessionalColorTable.)
Public property ButtonSelectedBorder Gets the border color to use with the ButtonSelectedGradientBegin, ButtonSelectedGradientMiddle, and ButtonSelectedGradientEnd colors. (Overrides ProfessionalColorTable.ButtonSelectedBorder.)
Public property ButtonSelectedGradientBegin Gets the starting color of the gradient used when the button is selected. (Overrides ProfessionalColorTable.ButtonSelectedGradientBegin.)
Public property ButtonSelectedGradientEnd Gets the end color of the gradient used when the button is selected. (Overrides ProfessionalColorTable.ButtonSelectedGradientEnd.)
Public property ButtonSelectedGradientMiddle Gets the middle color of the gradient used when the button is selected. (Overrides ProfessionalColorTable.ButtonSelectedGradientMiddle.)
Public property ButtonSelectedHighlight Gets the solid color used when the button is selected. (Overrides ProfessionalColorTable.ButtonSelectedHighlight.)
Public property ButtonSelectedHighlightBorder Gets the border color to use with ButtonSelectedHighlight. (Inherited from ProfessionalColorTable.)
Public property ButtonText Gets the color used to draw the text in a 3-D element.
Public property CheckBackground Gets the solid color to use when the button is checked and gradients are being used. (Overrides ProfessionalColorTable.CheckBackground.)
Public property CheckPressedBackground Gets the solid color to use when the button is checked and selected and gradients are being used. (Overrides ProfessionalColorTable.CheckPressedBackground.)
Public property CheckSelectedBackground Gets the solid color to use when the button is checked and selected and gradients are being used. (Overrides ProfessionalColorTable.CheckSelectedBackground.)
Public property GripDark Gets the color to use for shadow effects on the grip (move handle). (Overrides ProfessionalColorTable.GripDark.)
Public property GripLight Gets the color to use for highlight effects on the grip (move handle). (Overrides ProfessionalColorTable.GripLight.)
Public property Highlight Gets the color used to draw the background of selected items.
Public property HighlightText Gets the color used to draw the text of selected items.
Public property ImageMarginGradientBegin Gets the starting color of the gradient used in the image margin of a ToolStripDropDownMenu. (Overrides ProfessionalColorTable.ImageMarginGradientBegin.)
Public property ImageMarginGradientEnd Gets the end color of the gradient used in the image margin of a ToolStripDropDownMenu. (Overrides ProfessionalColorTable.ImageMarginGradientEnd.)
Public property ImageMarginGradientMiddle Gets the middle color of the gradient used in the image margin of a ToolStripDropDownMenu. (Overrides ProfessionalColorTable.ImageMarginGradientMiddle.)
Public property ImageMarginRevealedGradientBegin Gets the starting color of the gradient used in the image margin of a ToolStripDropDownMenu when an item is revealed. (Inherited from ProfessionalColorTable.)
Public property ImageMarginRevealedGradientEnd Gets the end color of the gradient used in the image margin of a ToolStripDropDownMenu when an item is revealed. (Inherited from ProfessionalColorTable.)
Public property ImageMarginRevealedGradientMiddle Gets the middle color of the gradient used in the image margin of a ToolStripDropDownMenu when an item is revealed. (Inherited from ProfessionalColorTable.)
Public property MenuBorder Gets the color that is the border color to use on a MenuStrip. (Overrides ProfessionalColorTable.MenuBorder.)
Public property MenuItemBorder Gets the border color to use with a ToolStripMenuItem. (Overrides ProfessionalColorTable.MenuItemBorder.)
Public property MenuItemPressedGradientBegin Gets the starting color of the gradient used when a top-level ToolStripMenuItem is pressed. (Inherited from ProfessionalColorTable.)
Public property MenuItemPressedGradientEnd Gets the end color of the gradient used when a top-level ToolStripMenuItem is pressed. (Inherited from ProfessionalColorTable.)
Public property MenuItemPressedGradientMiddle Gets the middle color of the gradient used when a top-level ToolStripMenuItem is pressed. (Inherited from ProfessionalColorTable.)
Public property MenuItemSelected Gets the solid color to use when a ToolStripMenuItem other than the top-level ToolStripMenuItem is selected. (Overrides ProfessionalColorTable.MenuItemSelected.)
Public property MenuItemSelectedGradientBegin Gets the starting color of the gradient used when the ToolStripMenuItem is selected. (Overrides ProfessionalColorTable.MenuItemSelectedGradientBegin.)
Public property MenuItemSelectedGradientEnd Gets the end color of the gradient used when the ToolStripMenuItem is selected. (Overrides ProfessionalColorTable.MenuItemSelectedGradientEnd.)
Public property MenuStripGradientBegin Gets the starting color of the gradient used in the MenuStrip. (Overrides ProfessionalColorTable.MenuStripGradientBegin.)
Public property MenuStripGradientEnd Gets the end color of the gradient used in the MenuStrip. (Overrides ProfessionalColorTable.MenuStripGradientEnd.)
Public property OverflowButtonGradientBegin Gets the starting color of the gradient used in the ToolStripOverflowButton. (Overrides ProfessionalColorTable.OverflowButtonGradientBegin.)
Public property OverflowButtonGradientEnd Gets the end color of the gradient used in the ToolStripOverflowButton. (Overrides ProfessionalColorTable.OverflowButtonGradientEnd.)
Public property OverflowButtonGradientMiddle Gets the middle color of the gradient used in the ToolStripOverflowButton. (Overrides ProfessionalColorTable.OverflowButtonGradientMiddle.)
Public property RaftingContainerGradientBegin Gets the starting color of the gradient used in the ToolStripContainer. (Overrides ProfessionalColorTable.RaftingContainerGradientBegin.)
Public property RaftingContainerGradientEnd Gets the end color of the gradient used in the ToolStripContainer. (Overrides ProfessionalColorTable.RaftingContainerGradientEnd.)
Public property SeparatorDark Gets the color to use to for shadow effects on the ToolStripSeparator. (Overrides ProfessionalColorTable.SeparatorDark.)
Public property SeparatorLight Gets the color to use to for highlight effects on the ToolStripSeparator. (Overrides ProfessionalColorTable.SeparatorLight.)
Public property StatusStripGradientBegin Gets the starting color of the gradient used on the StatusStrip. (Inherited from ProfessionalColorTable.)
Public property StatusStripGradientEnd Gets the end color of the gradient used on the StatusStrip. (Inherited from ProfessionalColorTable.)
Public property ToolStripBorder Gets the border color to use on the bottom edge of the ToolStrip. (Overrides ProfessionalColorTable.ToolStripBorder.)
Public property ToolStripContentPanelGradientBegin Gets the starting color of the gradient used in the ToolStripContentPanel. (Inherited from ProfessionalColorTable.)
Public property ToolStripContentPanelGradientEnd Gets the end color of the gradient used in the ToolStripContentPanel. (Inherited from ProfessionalColorTable.)
Public property ToolStripDropDownBackground Gets the solid background color of the ToolStripDropDown. (Overrides ProfessionalColorTable.ToolStripDropDownBackground.)
Public property ToolStripGradientBegin Gets the starting color of the gradient used in the ToolStrip background. (Overrides ProfessionalColorTable.ToolStripGradientBegin.)
Public property ToolStripGradientEnd Gets the end color of the gradient used in the ToolStrip background. (Overrides ProfessionalColorTable.ToolStripGradientEnd.)
Public property ToolStripGradientMiddle Gets the middle color of the gradient used in the ToolStrip background. (Overrides ProfessionalColorTable.ToolStripGradientMiddle.)
Public property ToolStripPanelGradientBegin Gets the starting color of the gradient used in the ToolStripPanel. (Inherited from ProfessionalColorTable.)
Public property ToolStripPanelGradientEnd Gets the end color of the gradient used in the ToolStripPanel. (Inherited from ProfessionalColorTable.)
Public property ToolWindowBackground Gets the color used to draw the background of a tool window.
Public property ToolWindowText Gets the color used to draw text on the background of a tool window.
Public property UseSystemColors Gets or sets a value indicating whether to use SystemColors rather than colors that match the current visual style. (Inherited from ProfessionalColorTable.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The IUIService interface should be used to obtain an instance of VSColorTable. The VSColorTable can be accessed by using IUIService. Styles["VSColorTable"].

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio Namespace