FontsAndColorsCategory Class

Represents a fonts and colors category.


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

public class FontsAndColorsCategory

The FontsAndColorsCategory type exposes the following members.

Public methodFontsAndColorsCategoryInitializes a new instance of FontsAndColorsCategory for the specified language service, font category, and color category.

Public propertyAppearanceCategoryGets the textual key that is used in the IEditorFormatMap and IClassificationFormatMap groupings of the editor.
Public propertyColorCategoryGets or sets the color category.
Public propertyFontCategoryGets or sets the font category.
Public propertyLanguageServiceGets the GUID of the language service.

Public methodEqualsDetermines whether two instances of this class are the same. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for this type. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetColorCategorySets GUID of the color category.
Public methodSetFontCategorySets the GUID of the font category.
Public methodSetLanguageServiceSets the GUID of the language service.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public operatorStatic memberEqualityDetermines whether two FontsAndColorsCategory objects are the same.
Public operatorStatic memberInequalityDetermines whether two FontsAndColorsCategory objects are different.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft