Skip to content

TextDrawOptions structure

public struct TextDrawOptions : IEquatable<TextDrawOptions>
parameter description
Foreground Base glyph color for ranges no paint span overrides.
PaintSpans Per-range foreground/background/decoration overrides.
Overlays Range highlight fills painted with the backgrounds, behind the glyphs.
Owner Cache owner the drawn runs are keyed to, so its entries release together.
Transient The text changes every frame: nothing drawn for it is kept in the run or backend text caches, and the backend reuses per-frame scratch textures instead of filling its cache with one-off entries.
name description
TextDrawOptions(…)
Foreground { get; set; } Base glyph color for ranges no paint span overrides.
Overlays { get; set; } Range highlight fills painted with the backgrounds, behind the glyphs.
Owner { get; set; } Cache owner the drawn runs are keyed to, so its entries release together.
PaintSpans { get; set; } Per-range foreground/background/decoration overrides.
Transient { get; set; } The text changes every frame: nothing drawn for it is kept in the run or backend text caches, and the backend reuses per-frame scratch textures instead of filling its cache with one-off entries.