Version

Configuring xamRichTextEditor Overview

Topic Overview

Purpose

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

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:

XamRichTextEditor Configuration Summary

XamRichTextEditor configuration summary chart

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

Configurable aspect Details Properties

Configures the manner of adding new text to a document.

Configure whether the hidden symbols are displayed.

Editing Mode

Overview

Use the following property to get or set the manner of adding new text to a document.

Property settings

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

In order to: Use this property: And:

Obtain the manner of adding new text to a document’s content.

TextUpdateMode

Read its value

Set how new text is applied to the document’s content.

TextUpdateMode

Set it to a value of type RichDocumentViewTextUpdateMode

Example

The following example show how to set the insert mode for accepting new text when applied to a document’s content:

In C#:

this.xamRichTextEditor1.TextUpdateMode = RichTextDocumentViewTextUpdateMode.Insert;

In Visual Basic:

Me.xamRichTextEditor1.TextUpdateMode = RichTextDocumentViewTextUpdateMode.Insert

Hidden Symbols

Overview

Use the following property to get or set hidden paragraph mark rendering in the xamRichTextEditor .

Property settings

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

In order to: Use this property: And:

Obtain whether hidden symbols are shown by the control.

HiddenSymbolDisplayMode

Read its value.

Set whether the control shows hidden symbols.

HiddenSymbolDisplayMode

Set it to a value of type HiddenSymbolDisplayMode

Example

The following example shows how to enable the displaying of hidden symbols:

In C#:

this.xamRichTextEditor1.HiddenSymbolDisplayMode = HiddenSymbolDisplayMode.DisplayAllHiddenSymbols;

In Visual Basic:

Me.xamRichTextEditor1.HiddenSymbolDisplayMode = HiddenSymbolDisplayMode.DisplayAllHiddenSymbols

Related Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains how to set and obtain the view zoom level in the xamRichTextEditor control.

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