Class SelectionUiPathBuilder
Builds a UI path for the selection mechanism in the Telerik document model.
Inheritance
Namespace: Telerik.Windows.Documents.Selection
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class SelectionUiPathBuilder : Object
Constructors
SelectionUiPathBuilder(PathGeometry)
Declaration
public SelectionUiPathBuilder(PathGeometry path)
Parameters
System.Windows.Media.PathGeometry
path
|
Methods
AddParagraphBoxSelection(ParagraphLayoutBox)
Adds a paragraph box selection to the selection UI path builder.
Declaration
public void AddParagraphBoxSelection(ParagraphLayoutBox layoutBox)
Parameters
ParagraphLayoutBox
layoutBox
The paragraph layout box to be added to the selection. |
AddPositionParagraphSelection(ParagraphLayoutBox, DocumentPosition, DocumentPosition, Boolean)
Adds a paragraph selection to the selection UI path builder at the specified position within the document.
Declaration
public void AddPositionParagraphSelection(ParagraphLayoutBox parentBox, DocumentPosition position, DocumentPosition endPosition, bool isFirstSelectionBlock)
Parameters
ParagraphLayoutBox
parentBox
The layout box of the paragraph to which the selection applies. |
DocumentPosition
position
The starting position of the selection within the document. |
DocumentPosition
endPosition
The ending position of the selection within the document. |
System.Boolean
isFirstSelectionBlock
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
public void CloseCurrentFigureAndStartNew()