New to Telerik UI for WPFStart a free 30-day trial

Builds a UI path for the selection mechanism in the Telerik document model.

Definition

Namespace:Telerik.Windows.Documents.Selection

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class SelectionUiPathBuilder

Inheritance: objectSelectionUiPathBuilder

Constructors

C#
public SelectionUiPathBuilder(PathGeometry path)
Parameters:pathPathGeometry

Methods

Adds a paragraph box selection to the selection UI path builder.

C#
public void AddParagraphBoxSelection(ParagraphLayoutBox layoutBox)
Parameters:layoutBoxParagraphLayoutBox

The paragraph layout box to be added to the selection.

Adds a paragraph selection to the selection UI path builder at the specified position within the document.

C#
public void AddPositionParagraphSelection(ParagraphLayoutBox parentBox, DocumentPosition position, DocumentPosition endPosition, bool isFirstSelectionBlock)
Parameters:parentBoxParagraphLayoutBox

The layout box of the paragraph to which the selection applies.

positionDocumentPosition

The starting position of the selection within the document.

endPositionDocumentPosition

The ending position of the selection within the document.

isFirstSelectionBlockbool

A boolean value indicating whether the selection is collapsed.

Closes the current figure in the selection user interface path and starts a new figure.

C#
public void CloseCurrentFigureAndStartNew()