FontsAndColorsCategory Class
Represents a fonts and colors category.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Editor.FontsAndColorsCategory
Namespace: Microsoft.VisualStudio.Editor
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Syntax
'宣告
Public Class FontsAndColorsCategory
public class FontsAndColorsCategory
public ref class FontsAndColorsCategory
type FontsAndColorsCategory = class end
public class FontsAndColorsCategory
The FontsAndColorsCategory type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FontsAndColorsCategory | Initializes a new instance of FontsAndColorsCategory for the specified language service, font category, and color category. |
Top
Properties
Name | Description | |
---|---|---|
AppearanceCategory | Gets the textual key that is used in the IEditorFormatMap and IClassificationFormatMap groupings of the editor. | |
ColorCategory | Gets or sets the color category. | |
FontCategory | Gets or sets the font category. | |
LanguageService | Gets the GUID of the language service. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether two instances of this class are the same. (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for this type. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetColorCategory | Sets GUID of the color category. | |
SetFontCategory | Sets the GUID of the font category. | |
SetLanguageService | Sets the GUID of the language service. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Determines whether two FontsAndColorsCategory objects are the same. | |
Inequality | Determines whether two FontsAndColorsCategory objects are different. |
Top
Remarks
Font and color categories are a way to group different editors into groups that share the same colors. Examples of this in Visual Studio are "Text Editor", "Output Window", etc. These show up in the Tools -> Options -> Fonts & Colors dialog in the "Show settings for" drop down. This is an immutable class.
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.