CaretBrush Property

RichTextBox.CaretBrush Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the brush that is used to render the vertical bar that indicates the insertion point.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property CaretBrush As Brush
<RichTextBox>
  <RichTextBox.CaretBrush>
    singleBrush
  </RichTextBox.CaretBrush>
</RichTextBox>
<RichTextBox CaretBrush="colorString"/>

XAML Values

singleBrush

Within opening and closing property elements for RichTextBox.CaretBrush, exactly one object element for an object that derives from Brush. The object element is typically one of the following Windows Phone classes: LinearGradientBrush, RadialGradientBrush, ImageBrush, SolidColorBrush, or VideoBrush.

colorString

The Color for a SolidColorBrush expressed as an attribute string. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB may also specify alpha information. See Color.

Property Value

Type: System.Windows.Media.Brush
A brush that is used to render the vertical bar that indicates the insertion point.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft