FindMyFiles
FindMyFiles.Highlighting
HighlightRange Struct
A half-open run of UTF-16 code units to emphasize, in the coordinate space of the string handed to Ranges(string, HighlightField).
public readonly record struct HighlightRange : System.IEquatable<FindMyFiles.Highlighting.HighlightRange>
Implements System.IEquatable<HighlightRange>
Constructors
HighlightRange(int, int) Constructor
A half-open run of UTF-16 code units to emphasize, in the coordinate space of the string handed to Ranges(string, HighlightField).
public HighlightRange(int Start, int Length);
Parameters
Start System.Int32
Zero-based UTF-16 index of the first highlighted unit.
Length System.Int32
Number of UTF-16 units highlighted (always ≥ 1).
Properties
HighlightRange.Length Property
Number of UTF-16 units highlighted (always ≥ 1).
public int Length { get; init; }
Property Value
HighlightRange.Start Property
Zero-based UTF-16 index of the first highlighted unit.
public int Start { get; init; }