New to Telerik UI for WinForms? Start a free 30-day trial

Navigates the inline content of a paragraph by word-level positions.

Definition

Constructors

Initializes a handler for positions within the specified paragraph layout box.

C#
public ParagraphPositionHandler(LayoutBox box)
Parameters:boxLayoutBox

The paragraph layout box to navigate.

Properties

Gets whether this handler can advance to the next position at its navigation level.

C#
public override bool CanMoveToNext { get; }

Overrides: ContainerPositionHandler.CanMoveToNext

Gets whether this handler can move to the previous position at its navigation level.

C#
public override bool CanMoveToPrevious { get; }

Overrides: ContainerPositionHandler.CanMoveToPrevious

Methods

Gets a word-level handler for the current child, or for the first or last word when no child is selected.

C#
public override PositionHandler GetChildPositionHandler(bool first)
Parameters:firstbool

true to get the first position in the word; false to get the last.

Returns:

PositionHandler

A handler for the selected word, or null when the paragraph has no valid position.

Overrides: ContainerPositionHandler.GetChildPositionHandler(bool)

Moves to the first position represented by this handler.

C#
public override void MoveToFirst()

Overrides: ContainerPositionHandler.MoveToFirst()

Moves to the first inline box of the paragraph's last word.

C#
public override void MoveToLast()

Overrides: ContainerPositionHandler.MoveToLast()

Advances the current word position to the next valid inline box after the current word.

C#
public override void MoveToNext()

Overrides: ContainerPositionHandler.MoveToNext()

Moves the current word position to the valid inline box immediately before the current word.

C#
public override void MoveToPrevious()

Overrides: ContainerPositionHandler.MoveToPrevious()