Edit

Share via


Tag Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Inherits BaseObservable

Implements ITag

The Tag class represents a tag that can be used in the command palette. It provides properties for customizing the appearance of the tag, including background color, foreground color, icon, text, and tooltip.

Constructors

Constructor Description
Tag() Initializes a new instance of the Tag class with default values.
Tag(String) Initializes a new instance of the Tag class with a specified text.

Properties

Property Type Description
Background OptionalColor The background color of the tag.
Foreground OptionalColor The foreground color of the tag.
Icon IIconInfo The icon associated with the tag.
Text String The text displayed on the tag.
ToolTip String The tooltip text displayed when hovering over the tag.