Partilhar via


CompletionItemWithHighlight Constructors

Definition

Overloads

CompletionItemWithHighlight(CompletionItem)

Constructs CompletionItemWithHighlight without any highlighting. Used when the CompletionItem appears in the completion list without being a text match.

CompletionItemWithHighlight(CompletionItem, ImmutableArray<Span>)

Constructs CompletionItemWithHighlight with given highlighting. Used when text used to filter the completion list can be found in the DisplayText.

CompletionItemWithHighlight(CompletionItem)

Constructs CompletionItemWithHighlight without any highlighting. Used when the CompletionItem appears in the completion list without being a text match.

public:
 CompletionItemWithHighlight(Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^ completionItem);
public CompletionItemWithHighlight (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem completionItem);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight
Public Sub New (completionItem As CompletionItem)

Parameters

completionItem
CompletionItem

Instance of the CompletionItem

Applies to

CompletionItemWithHighlight(CompletionItem, ImmutableArray<Span>)

Constructs CompletionItemWithHighlight with given highlighting. Used when text used to filter the completion list can be found in the DisplayText.

public:
 CompletionItemWithHighlight(Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^ completionItem, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Text::Span> highlightedSpans);
public CompletionItemWithHighlight (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem completionItem, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Text.Span> highlightedSpans);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Text.Span> -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight
Public Sub New (completionItem As CompletionItem, highlightedSpans As ImmutableArray(Of Span))

Parameters

completionItem
CompletionItem

Instance of the CompletionItem

highlightedSpans
ImmutableArray<Span>

Spans of DisplayText to highlight

Applies to