次の方法で共有


ITextFormattable.GetHighlightedTextRunProperties(TextRunProperties) Method

Definition

Gets a set of TextRunProperties that will override the "default" TextRunProperties used to display this object's text when this object is highlighted.

public:
 System::Windows::Media::TextFormatting::TextRunProperties ^ GetHighlightedTextRunProperties(System::Windows::Media::TextFormatting::TextRunProperties ^ defaultHighlightedTextRunProperties);
public System.Windows.Media.TextFormatting.TextRunProperties GetHighlightedTextRunProperties (System.Windows.Media.TextFormatting.TextRunProperties defaultHighlightedTextRunProperties);
abstract member GetHighlightedTextRunProperties : System.Windows.Media.TextFormatting.TextRunProperties -> System.Windows.Media.TextFormatting.TextRunProperties
Public Function GetHighlightedTextRunProperties (defaultHighlightedTextRunProperties As TextRunProperties) As TextRunProperties

Parameters

defaultHighlightedTextRunProperties
TextRunProperties

The set of TextRunProperties that would have been used to present the highlighted object had no overriding taken place.

Returns

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.

Applies to