Skip to content

ui::TextColorSpan

Header: winui/render/TextLayout.hpp.

A range of text drawn in its own color, such as a token a syntax highlighter colored. Unlike a TextHighlight it only recolors: the text is drawn once, in pieces.

Field Type Default
begin std::size_t 0 First byte offset into the text.
end std::size_t 0 One past the last byte offset; an empty range colors nothing.
color Color The text color inside the range.