Partager via


CompletionSet.GetHighlightedSpansInDisplayText(String) Method

Definition

Returns a list of spans (of character positions) that should be highlighted in the display text.

public:
 virtual System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::Text::Span> ^ GetHighlightedSpansInDisplayText(System::String ^ displayText);
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Text.Span> GetHighlightedSpansInDisplayText (string displayText);
abstract member GetHighlightedSpansInDisplayText : string -> System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Text.Span>
override this.GetHighlightedSpansInDisplayText : string -> System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Text.Span>
Public Overridable Function GetHighlightedSpansInDisplayText (displayText As String) As IReadOnlyList(Of Span)

Parameters

displayText
String

Returns

A list of spans (e.g. {[0,1), [4,6)} to highlight the 1st, 5th and 6th characters) or null if no highlighting is desired

Applies to