In This Article

CompletionItemMatcherBase Class

Represents an abstract object that can match completion items based on supplied text.

public abstract class CompletionItemMatcherBase : ICompletionItemMatcher, IKeyedObject
Inheritance:
System.Object Object
Derived:
RegexCompletionItemMatcherBase
Implements:
ICompletionItemMatcher IKeyedObject

Constructors

CompletionItemMatcherBase()

protected CompletionItemMatcherBase()

Properties

Key

Gets the string-based key that identifies the object.

public abstract string Key { get; }

Property Value

System.String:

The string-based key that identifies the object.

Methods

GetHighlightedTextRanges(ICompletionSession, ICompletionItem, String)

Returns a collection of TextRange objects that specify the ranges of matched characters within an ICompletionItem's Text.

public virtual IEnumerable<TextRange> GetHighlightedTextRanges(ICompletionSession session, ICompletionItem item, string text)
Parameter Type Description
session ICompletionSession

The ICompletionSession in which the match is to be made.

item ICompletionItem

The ICompletionItem against which to match.

text System.String

The text to use for matching.

Returns

System.Collections.Generic.IEnumerable<TextRange>:

A collection of TextRange objects that specify the ranges of matched characters within an ICompletionItem's Text.

Match(ICompletionSession, IEnumerable, String, Boolean)

Attempts to locate an ICompletionItem match based on specified text.

public abstract CompletionSelection Match(ICompletionSession session, IEnumerable items, string text, bool uniqueFullMatchOnly)
Parameter Type Description
session ICompletionSession

The ICompletionSession in which the match is to be made.

items System.Collections.IEnumerable

The collection of items against which to match.

text System.String

The text to use for matching.

uniqueFullMatchOnly System.Boolean

Whether to only return a match if it is a full and unique match.

Returns

CompletionSelection:

A CompletionSelection instance, if a match was made.

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()