다음을 통해 공유


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
Public method FontsAndColorsCategory Initializes a new instance of FontsAndColorsCategory for the specified language service, font category, and color category.

Top

Properties

  Name Description
Public property AppearanceCategory Gets the textual key that is used in the IEditorFormatMap and IClassificationFormatMap groupings of the editor.
Public property ColorCategory Gets or sets the color category.
Public property FontCategory Gets or sets the font category.
Public property LanguageService Gets the GUID of the language service.

Top

Methods

  Name Description
Public method Equals Determines whether two instances of this class are the same. (Overrides Object.Equals(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 a hash function for this type. (Overrides Object.GetHashCode().)
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 SetColorCategory Sets GUID of the color category.
Public method SetFontCategory Sets the GUID of the font category.
Public method SetLanguageService Sets the GUID of the language service.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two FontsAndColorsCategory objects are the same.
Public operatorStatic member 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.

See Also

Reference

Microsoft.VisualStudio.Editor Namespace