CompletionSet.GetHighlightedSpansInDisplayText(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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