Struct PaletteTextSegment
- Namespace
- Whim.CommandPalette
- Assembly
- Whim.CommandPalette.dll
A single segment of text, which can be highlighted.
public record struct PaletteTextSegment : IEquatable<PaletteTextSegment>
- Implements
- Inherited Members
Constructors
PaletteTextSegment(string, bool)
A single segment of text, which can be highlighted.
public PaletteTextSegment(string Text, bool IsHighlighted)
Parameters
Properties
IsHighlighted
public bool IsHighlighted { readonly get; set; }
Property Value
Text
public string Text { readonly get; set; }
Property Value
Methods
ToRun()
Converts the PaletteTextSegment to a Run.
public readonly Run ToRun()