ui::TextHighlight¶
Header: winui/render/TextLayout.hpp.
A range drawn with its own background and/or foreground, such as a highlight or the selection.
| Field | Type | Default | |
|---|---|---|---|
begin |
std::size_t |
0 |
First byte offset into TextLayout::text(). |
end |
std::size_t |
0 |
One past the last byte offset; an empty range draws nothing. |
background |
std::optional<Color> |
Fill behind the range; unset leaves the background alone. | |
foreground |
std::optional<Color> |
Text color inside the range; unset keeps the runs' own colors. |