FindMyFiles

FindMyFiles.Highlighting

HighlightSegment Struct

One piece of a string for highlighted rendering.

public readonly record struct HighlightSegment : System.IEquatable<FindMyFiles.Highlighting.HighlightSegment>

Implements System.IEquatable<HighlightSegment>

Constructors

HighlightSegment(string, bool) Constructor

One piece of a string for highlighted rendering.

public HighlightSegment(string Text, bool Highlighted);

Parameters

Text System.String

The piece's text.

Highlighted System.Boolean

True when this piece should be emphasized.

Properties

HighlightSegment.Highlighted Property

True when this piece should be emphasized.

public bool Highlighted { get; init; }

Property Value

System.Boolean

HighlightSegment.Text Property

The piece's text.

public string Text { get; init; }

Property Value

System.String