Skip to content

TextFormat

Text formatting flags (bold, italic). Values can be combined with +.

Static Properties

BOLD

Type: const TextFormat

Text-format flag that renders supported text in bold.


ITALIC

Type: const TextFormat

Text-format flag that renders supported text in italics.


NONE

Type: const TextFormat

Text-format flag that applies no extra formatting.

Methods

operator+

navi
operator+(a: TextFormat, b: TextFormat): TextFormat

Combines two text-format flags (bitwise OR).

Parameters

NameTypeDefaultDescription
aTextFormat
bTextFormat

Returns: TextFormat


operator-

navi
operator-(a: TextFormat, b: TextFormat): TextFormat

Removes text-format flags from the first operand (bitwise difference).

Parameters

NameTypeDefaultDescription
aTextFormat
bTextFormat

Returns: TextFormat