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

Provides one level of navigation through the layout boxes that make up a document position.

Definition

Namespace:Telerik.WinForms.Documents

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public abstract class PositionHandler

Inheritance: objectPositionHandler

Derived Classes: ContainerPositionHandlerInlineBoxPositionHandler

Constructors

Initializes the handler for a layout box; debug builds assert that the box is not a clone.

C#
public PositionHandler(LayoutBox box)
Parameters:boxLayoutBox

The layout box represented at this navigation level.

Properties

Gets the layout box represented by this handler.

C#
public LayoutBox Box { get; protected set; }

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

C#
public abstract bool CanMoveToNext { get; }

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

C#
public abstract bool CanMoveToPrevious { get; }

Gets the layout coordinate represented by this position handler.

C#
public abstract PointF Location { get; }

Methods

Creates a copy of this handler's current navigation state.

C#
public abstract PositionHandler Clone()
Returns:

PositionHandler

A position handler representing the copied state.

Determines whether another position handler represents the same layout box. Derived handlers may refine this comparison.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this handler.

Returns:

bool

true when obj is a position handler for the same layout box; otherwise, false.

Overrides: object.Equals(object)

Returns the hash code of the represented layout box.

C#
public override int GetHashCode()
Returns:

int

The hash code of Box.

Overrides: object.GetHashCode()

Creates a handler for the parent layout box, if one exists.

C#
public abstract PositionHandler GetParentHandler()
Returns:

PositionHandler

The parent handler, or null when this handler represents the root box.

Moves to the first position represented by this handler.

C#
public abstract void MoveToFirst()

Moves to the last position represented by this handler.

C#
public abstract void MoveToLast()

Advances to the next position at this handler's navigation level.

C#
public abstract void MoveToNext()

Moves to the previous position at this handler's navigation level.

C#
public abstract void MoveToPrevious()