FontsAndColorsCategory 类

定义

表示字体和颜色类别。 字体和颜色类别充当将各种编辑器分组为共享相同颜色的组的一种表示方法。 Visual Studio 中的此类示例包括“文本编辑器”、“输出窗口”等。这些选项显示在“显示其设置”下拉列表中的“工具> - 选项 -> 字体 & 颜色”对话框中。 这是一个不可变类。

public ref class FontsAndColorsCategory
[Windows::Foundation::Metadata::WebHostHidden]
class FontsAndColorsCategory
public class FontsAndColorsCategory
type FontsAndColorsCategory = class
Public Class FontsAndColorsCategory
继承
FontsAndColorsCategory

注解

字体和颜色类别是将不同编辑器分组为共享相同颜色的组的一种方法。 Visual Studio 中的此类示例包括“文本编辑器”、“输出窗口”等。它们显示在“显示其设置”下拉列表中的“工具”->“选项”->“字体 & 颜色”对话框中。 这是一个不可变类。

构造函数

FontsAndColorsCategory(Guid, Guid, Guid)

初始化 FontsAndColorsCategory 的新实例。

属性

AppearanceCategory

返回一个字符串,该字符串表示编辑器 (平台端) EditorFormatMap 和 ClassificationFormatMap 分组中使用的文本键。

ColorCategory

FontsAndColorsCategory的颜色类别 guid。

FontCategory

FontsAndColorsCategory的字体类别 guid。

LanguageService

FontsAndColorsCategory的语言服务 guid。

方法

Equals(Object)

确定两个 FontsAndColorsCategory是否相同。

GetHashCode()

作为此类型的哈希函数。

SetColorCategory(Guid)

设置颜色类别 Guid。

SetFontCategory(Guid)

设置字体类别 Guid。

SetLanguageService(Guid)

设置语言服务 Guid。

运算符

Equality(FontsAndColorsCategory, FontsAndColorsCategory)

确定两个 FontsAndColorsCategory 对象是否相同。

Inequality(FontsAndColorsCategory, FontsAndColorsCategory)

确定两个 FontsAndColorsCategory 对象是否不同。

适用于