Class MatcherResult<T>
- Namespace
- Whim.CommandPalette
- Assembly
- Whim.CommandPalette.dll
A IVariantRowModel<TData> model, the text matches from the query, and the score of the
result for the IMatcher<TData>.
public record MatcherResult<T> : IEquatable<MatcherResult<T>>
Type Parameters
T
- Inheritance
-
MatcherResult<T>
- Implements
- Inherited Members
Constructors
MatcherResult(IVariantRowModel<T>, FilterTextMatch[], long)
Creates a new MatcherResult<T>.
public MatcherResult(IVariantRowModel<T> model, FilterTextMatch[] textSegments, long score)
Parameters
model
IVariantRowModel<T>- The associated model of the result.
textSegments
FilterTextMatch[]- The text matches from the query.
score
long- The score of the result.
Properties
FormattedTitle
The title of the item, with the matched text segments highlighted.
public PaletteText FormattedTitle { get; }
Property Value
Remarks
This will re-evaluate each time it is accessed.
Model
The associated model of the result.
public IVariantRowModel<T> Model { get; }
Property Value
Score
The score of the result.
public long Score { get; }