共用方式為


SelectionForeground

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the brush that fills the foreground of the selected text.

<object SelectionForeground="colorString" .../>
-or-
<object>
  <object.SelectionForeground>
    singleBrush
  </object.SelectionForeground>
</object>
value = object.SelectionForeground
object.SelectionForeground = value

XAML Values

See Brush.

Property Value

Type: Brush

The brush that fills the foreground of the selected text.

This property is read/write. The default is a null brush.

Applies To

PasswordBox

TextBox

Version Information

Silverlight 2