New to Telerik UI for WPF? Download free 30-day trial

Layout Modes

The RadRichTextBox allows you to choose between several layout modes.


When using the paged mode, the content of the edited document is divided into pages. The size and layout of each page are defined by the DefaultPageLayoutSettings property of RadDocument and specifically - the Width and Height properties of the PageLayoutSettings object.

Next, the margins of the control in a page are specified by the PageMargin property of each Section.

In Paged mode, resizing a RadRichTextBox will not affect the document layout but scroll bars will appear if the document does not fit in the view.

RadRichTextBox in Paged Layout Mode


In Flow layout mode, the document content is not divided into pages. Instead the whole content is displayed as in a TextBox or RichTextBox. This layout option resembles MS Word’s Web-Layout mode. The width of the document is the same as that of the RadRichTextBox and changing the control’s width will also resize the content of the document.

RadRichTextBox in Flow Layout Mode


The FlowNoWrap layout mode is similar to the Flow layout mode, but it doesn't allow the text in the separate paragraphs to get wrapped when the free space gets exceeded. Instead a horizontal scroll bar will appear.

RadRichTextBox in FlowNoWrap Layout Mode

Change the Layout Mode

Example 1: Setting the layout mode

<telerik:RadRichTextBox x:Name="radRichTextBox" LayoutMode="Paged"/> 

Example 1: Setting the layout mode

this.radRichTextBox.LayoutMode = DocumentLayoutMode.Paged; 
Me.radRichTextBox.LayoutMode = DocumentLayoutMode.Paged 

See Also

In this article