Expand Minimize

RichTextBlock.SelectionHighlightColor property

Applies to Windows and Windows Phone

Gets or sets the brush used to highlight the selected text.

Syntax


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


<RichTextBlock>
  <RichTextBlock.SelectionHighlightColor>
    singleBrush
  </RichTextBlock.SelectionHighlightColor>
</RichTextBlock>


<RichTextBlock SelectionHighlightColor="colorString"/>

XAML Values

singleBrush

A single object element for a SolidColorBrush.

colorString

The Color for a SolidColorBrush expressed as a string value for the attribute. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB values can also specify alpha information. For more information, see the "XAML Values" section in Brush.

Property value

Type: SolidColorBrush

The brush used to highlight the selected text.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

RichTextBlock

 

 

Show:
© 2014 Microsoft