Table of Contents

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

Text string
IsHighlighted bool

Properties

IsHighlighted

public bool IsHighlighted { readonly get; set; }

Property Value

bool

Text

public string Text { readonly get; set; }

Property Value

string

Methods

ToRun()

Converts the PaletteTextSegment to a Run.
public readonly Run ToRun()

Returns

Run