Options
All
  • Public
  • Public/Protected
  • All
Menu

A color presentation object describes how a Color should be represented as text and what edits are required to refer to it from source code.

For some languages one color can have multiple presentations, e.g. css can represent the color red with the constant Red, the hex-value #ff0000, or in rgba and hsla forms. In csharp other representations apply, e.g. System.Drawing.Color.Red.

层级

  • ColorPresentation

索引

Constructors(1)

Properties(3)

Constructors(1)

constructor

Properties(3)

label

label: string

The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation.

Optional textEdit

textEdit: TextEdit

An edit which is applied to a document when selecting this presentation for the color. When falsy the label is used.

Optional additionalTextEdits

additionalTextEdits: TextEdit[]

An optional array of additional text edits that are applied when selecting this color presentation. Edits must not overlap with the main edit nor with themselves.

VS Code 插件开发中文文档 | VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc | 站长统计