RichEditBox.SelectionHighlightColorWhenNotFocused 属性

定义

获取或设置用于在 RichEditBox 没有焦点时突出显示所选文本的画笔。

public:
 property SolidColorBrush ^ SelectionHighlightColorWhenNotFocused { SolidColorBrush ^ get(); void set(SolidColorBrush ^ value); };
SolidColorBrush SelectionHighlightColorWhenNotFocused();

void SelectionHighlightColorWhenNotFocused(SolidColorBrush value);
public SolidColorBrush SelectionHighlightColorWhenNotFocused { get; set; }
var solidColorBrush = richEditBox.selectionHighlightColorWhenNotFocused;
richEditBox.selectionHighlightColorWhenNotFocused = solidColorBrush;
Public Property SelectionHighlightColorWhenNotFocused As SolidColorBrush
<RichEditBox SelectionHighlightColorWhenNotFocused="{StaticResource resourceName}"/>
- or -
<RichEditBox SelectionHighlightColorWhenNotFocused="colorString"/>

属性值

用于在 RichEditBox 失去焦点时突出显示所选文本的画笔。 从纯代码的角度来看,默认值为 null 画笔,但 RichEditBox 的默认控件模板在 RichEditBox 控件的运行时实例中为此应用透明画笔。 若要禁用 SelectionHighlightColorWhenNotFocused,请再次将画笔设置为透明。

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于

另请参阅