Version

Content Structure (xamRichTextEditor)

Topic Overview

Purpose

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

Required background

The following topic is a prerequisite to understanding this topic:

Topic Purpose

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

Rich Content Hierarchy

Rich content summary

The xamRichTextEditor is capable of rendering rich content; internally represented by a hierarchy of different types located in the RichTextDocument; access using the XamRichTextEditor.Document property.

RichTextDocument Key Aspects

Document key aspects summary chart

The RichTextDocument provides various methods for appending, inserting and deleting rich content. Use the root node to access the descendant rich content hierarchy, which consists of containers (like paragraphs or tables) and nodes without children (like text nodes or image).

Key aspect Details Properties

Available styles

A collection containing all pre-populated standard styles, used to fill the Styles collection of the root node.

Root node

The main entry point for the descendant content hierarchy of the document.

DocumentRootNode Key Aspects

Root node key aspects summary chart

The DocumentRootNode provides properties for configuring the document rich content like default characters and paragraphs settings. Use the body node to access the descendant rich content hierarchy.

Key aspect Details Properties

Lists collection

A RichTextList collection contains all the numbered and bulleted list styles in the document.

Styles collection

A RichTextStyleBase collection contains all styles available for the document.

Settings

The default character and paragraph settings.

Body node

The body node contains all descendant nodes of the rich content.

DocumentBodyNode Key Aspects

Body node key aspects summary chart

The DocumentBodyNode contains all descendant rich content. To append rich content, use the ChildNodes collection and add ParagraphNode or TableNode types.

Note
Note

To understand the types you need to add in the ChildNodes collection for different rich content, please follow the links in the Related Content section.

Key aspect Details Properties

Child nodes

Used to access the rich content which is directly visible in the editor.

ChildNodes

Related Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic provides information on how to create text using the xamRichTextEditor from a developer’s perspective.

This topic provides information on how to create hyperlinks using the xamRichTextEditor from the developer’s perspective.

This topic provides information on how to create lists using the xamRichTextEditor from the developer’s perspective.

This topic provides information on how to create images using the xamRichTextEditor from the developer’s perspective.

This topic provides information on how to use the xamRichTextEditor to create tables from the developer’s perspective.