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
声明
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: System.Windows.Media.TextFormatting.TextRunProperties
The set of TextRunProperties that would have been used to present the highlighted object if they had not been overridden..
Return Value
Type: System.Windows.Media.TextFormatting.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.