TokenColor 枚举

定义

指定在编辑器中对文本着色时单个代码单元应具有的颜色。Specifies the colors that individual units of code should have when text is being colorized in an editor. Color 对象的 ITokenColorInfo 属性使用此枚举的成员。The members of this enumeration are used by the Color property of ITokenColorInfo objects.

此 API 支持产品基础结构,不能在代码中直接使用。

public enum class TokenColor
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("78008402-40D4-30BF-BD91-A61D8815625E")]
public enum TokenColor
type TokenColor = 
Public Enum TokenColor
继承
TokenColor
属性

字段

COLOR_COMMENT 3

表示注释的代码单元的颜色。The color for a unit of code that represents a comment.

COLOR_CONDITIONAL_COMP 7

未使用。Not used.

COLOR_IDENTIFIER 1

表示标识符的代码单元的颜色。The color for a unit of code that represents an identifier.

COLOR_KEYWORD 2

表示关键字的代码单元的颜色。The color for a unit of code that represents a keyword.

COLOR_NUMBER 5

表示数字文本的代码单元的颜色。The color for a unit of code that represents a numeric literal.

COLOR_OPERATOR 4

表示运算符的代码单元的颜色。The color for a unit of code that represents an operator.

COLOR_STRING 6

表示字符串的代码单元的颜色。The color for a unit of code that represents a string literal.

COLOR_TEXT 0

表示文本的代码单元的颜色。The color for a unit of code that represents text. 这是默认值。This is the default value.

适用于

另请参阅