Share via


PatternMatch Struct

Definition

public value class PatternMatch : IComparable<Microsoft::VisualStudio::Text::PatternMatching::PatternMatch>
public struct PatternMatch : IComparable<Microsoft.VisualStudio.Text.PatternMatching.PatternMatch>
type PatternMatch = struct
Public Structure PatternMatch
Implements IComparable(Of PatternMatch)
Inheritance
PatternMatch
Implements

Constructors

PatternMatch(PatternMatchKind, Boolean, Boolean, ImmutableArray<Span>)

Creates a PatternMatch object with a set of spans

PatternMatch(PatternMatchKind, Boolean, Boolean)

Creates a PatternMatch object with an optional single span.

Properties

IsCaseSensitive

True if this was a case sensitive match.

IsPunctuationStripped

True if punctuation was removed for this match.

Kind

The type of match that occurred.

MatchedSpans

The spans in the original text that were matched. Only returned if the pattern matcher is asked to collect these spans.

Methods

CompareTo(PatternMatch, Boolean)

Compares two PatternMatch objects with the specified behavior for ignoring capitalization.

CompareTo(PatternMatch)

Compares two PatternMatch objects.

WithMatchedSpans(ImmutableArray<Span>)

Get a PatternMatch object with additional spans added to it. This is an optimization to avoid having to call the whole constructor.

Applies to