New to Telerik UI for WPFStart a free 30-day trial

Represents a delegate that is used to handle position-related events in Telerik's RadRichTextBox.

Definition

Namespace:Telerik.Windows.Documents

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public abstract class PositionHandler

Inheritance: objectPositionHandler

Derived Classes: ContainerPositionHandlerInlineBoxPositionHandler

Constructors

C#
public PositionHandler(LayoutBox box)
Parameters:boxLayoutBox

Properties

Represents a box element in the Telerik document structure, providing functionalities to manipulate the position of various document elements.

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

Determines whether the position can be moved to the next valid position within the document.

C#
public abstract bool CanMoveToNext { get; }

Determines whether the position can be moved to the previous element.

C#
public abstract bool CanMoveToPrevious { get; }

Represents the location of a position within a document.

C#
public abstract PointF Location { get; }

Methods

Creates a deep copy of the current instance of the PositionHandler.

C#
public abstract PositionHandler Clone()
Returns:

PositionHandler

Determines whether the specified object is equal to the current instance.

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

The object to compare with the current instance.

Returns:

bool

true if the specified object is equal to the current instance; otherwise, false.

Overrides: object.Equals(object)

Retrieves the hash code for the current instance of the PositionHandler.

C#
public override int GetHashCode()
Returns:

int

A 32-bit signed integer that is the hash code for the current PositionHandler instance.

Overrides: object.GetHashCode()

Retrieves the parent position handler associated with the current handler.

C#
public abstract PositionHandler GetParentHandler()
Returns:

PositionHandler

The parent PositionHandler of the current handler, or null if there is no parent.

Moves the position to the first element in the collection.

C#
public abstract void MoveToFirst()

Moves the position to the last element within the document.

C#
public abstract void MoveToLast()

Moves the position to the next available element in the document.

C#
public abstract void MoveToNext()

Moves the position to the previous element in the document.

C#
public abstract void MoveToPrevious()