Class
SelectionUiPathBuilder

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:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Ui")]
public class SelectionUiPathBuilder

Inheritance: objectSelectionUiPathBuilder

Constructors

SelectionUiPathBuilder(PathGeometry)

Declaration

cs-api-definition
public SelectionUiPathBuilder(PathGeometry path)

Parameters

path

PathGeometry

Methods

AddParagraphBoxSelection(ParagraphLayoutBox)

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

Declaration

cs-api-definition
public void AddParagraphBoxSelection(ParagraphLayoutBox layoutBox)

Parameters

layoutBox

ParagraphLayoutBox

The paragraph layout box to be added to the selection.

AddPositionParagraphSelection(ParagraphLayoutBox, DocumentPosition, DocumentPosition, bool)

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

Declaration

cs-api-definition
public void AddPositionParagraphSelection(ParagraphLayoutBox parentBox, DocumentPosition position, DocumentPosition endPosition, bool isFirstSelectionBlock)

Parameters

parentBox

ParagraphLayoutBox

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

position

DocumentPosition

The starting position of the selection within the document.

endPosition

DocumentPosition

The ending position of the selection within the document.

isFirstSelectionBlock

bool

A boolean value indicating whether the selection is collapsed.

CloseCurrentFigureAndStartNew()

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

Declaration

cs-api-definition
public void CloseCurrentFigureAndStartNew()