Version

Configuring Caret Color (xamRichTextEditor)

Topic Overview

Purpose

This topic explains how to change the xamRichTextEditor ™ control’s caret color.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides an overview of the features supported by the xamRichTextEditor control.

This topic explains the document’s content logical structure you can use to edit the contents in the xamRichTextEditor programmatically.

This topic provides detailed instructions to help you get up and running as quickly as possible with the xamRichTextEditor .

In this topic

This topic contains the following sections:

Caret Color Configuration Summary

Caret Color configuration summary chart

The following table briefly explains the configurable aspects of the xamRichTextEditor control and maps them to their specific properties.

Configurable aspect Details Properties

Changes the color used to draw the editor’s caret.

Change xamRichTextEditor’s Caret Color

Overview

Use the xamRichTextEditor control’s CaretColor property to specify the color to display the caret.

Property settings

The following table maps the desired configuration to its specific property settings.

In order to: Use this property: And set it to:

Change the color used for the editor’s caret

CaretColor

A value of type ColorInfo

Example

The code snippet below demonstrates how to set the xamRichTextEditor’s caret in green color:

In XAML:

<ig:XamRichTextEditor x:Name="xamRichTextEditor1" CaretColor="Green">
</ig:XamRichTextEditor>

In C#:

this.xamRichTextEditor1.CaretColor = new ColorInfo(Colors.Green);

In Visual Basic:

Me.xamRichTextEditor1.CaretColor = New ColorInfo(Colors.Green)

Related Topics

The following topic provides additional information related to this topic.

Topic Purpose

This topic explains how to configure several useful content editing features of the xamRichTextEditor control.