Class
ContainerPositionHandler

Represents a delegate that handles the positioning of a container within a document.

Definition

Namespace:Telerik.Windows.Documents

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ContainerPositionHandler : PositionHandler

Inheritance: objectPositionHandlerContainerPositionHandler

Derived Classes: ParagraphPositionHandlerTableRowPositionHandlerWordPositionHandler

Inherited Members PositionHandler.Equals(object)PositionHandler.GetHashCode()PositionHandler.Box

Constructors

ContainerPositionHandler(LayoutBox)

Declaration

cs-api-definition
public ContainerPositionHandler(LayoutBox box)

Parameters

box

LayoutBox

ContainerPositionHandler(LayoutBox, LayoutBox)

Declaration

cs-api-definition
public ContainerPositionHandler(LayoutBox box, LayoutBox childBox)

Parameters

box

LayoutBox

childBox

LayoutBox

Fields

childPosition

Declaration

cs-api-definition
protected LayoutBox childPosition

Field Value

LayoutBox

Properties

CanMoveToNext

Determines whether the container can move to the next position in the document.

Declaration

cs-api-definition
public override bool CanMoveToNext { get; }

Property Value

bool

Overrides PositionHandler.CanMoveToNext

CanMoveToPrevious

Determines whether the cursor can move to the previous position within the container.

Declaration

cs-api-definition
public override bool CanMoveToPrevious { get; }

Property Value

bool

Overrides PositionHandler.CanMoveToPrevious

Location

Represents the location of the container position in a document.

Declaration

cs-api-definition
public override PointF Location { get; }

Property Value

PointF

Overrides PositionHandler.Location

Methods

Clone()

Creates a clone of the current instance of the ContainerPositionHandler.

Declaration

cs-api-definition
public override PositionHandler Clone()

Returns

PositionHandler

A new instance of ContainerPositionHandler that is a copy of the current instance.

Overrides PositionHandler.Clone()

GetChildPositionHandler(bool)

Retrieves the child position handler associated with the current position.

Declaration

cs-api-definition
public virtual PositionHandler GetChildPositionHandler(bool first)

Parameters

first

bool

A boolean value indicating whether to include hidden elements in the search for child position handlers.

Returns

PositionHandler

A ContainerPositionHandler that represents the child position handler, or null if no such handler exists.

GetParentHandler()

Retrieves the parent container position handler associated with the current handler.

Declaration

cs-api-definition
public override PositionHandler GetParentHandler()

Returns

PositionHandler

The parent ContainerPositionHandler instance, or null if there is no parent handler.

Overrides PositionHandler.GetParentHandler()

MoveToFirst()

Moves the container position to the first element in the container.

Declaration

cs-api-definition
public override void MoveToFirst()

Overrides PositionHandler.MoveToFirst()

MoveToLast()

Moves the position of the container to the last element within it.

Declaration

cs-api-definition
public override void MoveToLast()

Overrides PositionHandler.MoveToLast()

MoveToNext()

Moves the container position to the next item in the sequence.

Declaration

cs-api-definition
public override void MoveToNext()

Overrides PositionHandler.MoveToNext()

MoveToPrevious()

Moves the current position to the previous container in the document.

Declaration

cs-api-definition
public override void MoveToPrevious()

Overrides PositionHandler.MoveToPrevious()

SetChildPosition(LayoutBox)

Sets the position of a child layout box within the container.

Declaration

cs-api-definition
public void SetChildPosition(LayoutBox position)

Parameters

position

LayoutBox

The layout box whose position is to be set.