ClassSelectionUiPathBuilder
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:
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Ui")]
public class SelectionUiPathBuilder
Inheritance: objectSelectionUiPathBuilder
Constructors
SelectionUiPathBuilder(PathGeometry)
Declaration
public SelectionUiPathBuilder(PathGeometry path)
Parameters
path
PathGeometry
Methods
AddParagraphBoxSelection(ParagraphLayoutBox)
Adds a paragraph box selection to the selection UI path builder.
Declaration
public void AddParagraphBoxSelection(ParagraphLayoutBox layoutBox)
Parameters
layoutBox
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
public void AddPositionParagraphSelection(ParagraphLayoutBox parentBox, DocumentPosition position, DocumentPosition endPosition, bool isFirstSelectionBlock)
Parameters
parentBox
The layout box of the paragraph to which the selection applies.
position
The starting position of the selection within the document.
endPosition
The ending position of the selection within the document.
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()