Share via


ITextFormattable.GetHighlightedTextRunProperties Method

Gets a set of text run properties that overrides the default set used to display text when this object is highlighted.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'Declaration
Function GetHighlightedTextRunProperties ( _
    defaultHighlightedTextRunProperties As TextRunProperties _
) As TextRunProperties
TextRunProperties GetHighlightedTextRunProperties(
    TextRunProperties defaultHighlightedTextRunProperties
)
TextRunProperties^ GetHighlightedTextRunProperties(
    TextRunProperties^ defaultHighlightedTextRunProperties
)
abstract GetHighlightedTextRunProperties : 
        defaultHighlightedTextRunProperties:TextRunProperties -> TextRunProperties
function GetHighlightedTextRunProperties(
    defaultHighlightedTextRunProperties : TextRunProperties
) : TextRunProperties

Parameters

  • defaultHighlightedTextRunProperties
    Type: TextRunProperties

    The set of TextRunProperties that would have been used to present the highlighted object if they had not been overridden..

Return Value

Type: TextRunProperties
A set of TextRunProperties that should be used to display this object's highlighted text.

Remarks

A completion item is highlighted in the default statement completion presenter when it is fully selected. The properties selected to render the highlighted text should be chosen so that they do not clash with the style of the selection rectangle.

.NET Framework Security

See Also

Reference

ITextFormattable Interface

Microsoft.VisualStudio.Language.Intellisense Namespace