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

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:

C#
public class ContainerPositionHandler : PositionHandler

Inheritance: objectPositionHandlerContainerPositionHandler

Derived Classes: ParagraphPositionHandlerTableRowPositionHandlerWordPositionHandler

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

Constructors

C#
public ContainerPositionHandler(LayoutBox box, LayoutBox childBox)
Parameters:boxLayoutBoxchildBoxLayoutBox
C#
public ContainerPositionHandler(LayoutBox box)
Parameters:boxLayoutBox

Fields

C#
protected LayoutBox childPosition

Properties

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

C#
public override bool CanMoveToNext { get; }

Overrides: PositionHandler.CanMoveToNext

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

C#
public override bool CanMoveToPrevious { get; }

Overrides: PositionHandler.CanMoveToPrevious

Represents the location of the container position in a document.

C#
public override PointF Location { get; }

Overrides: PositionHandler.Location

Methods

Creates a clone of the current instance of the ContainerPositionHandler.

C#
public override PositionHandler Clone()
Returns:

PositionHandler

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

Overrides: PositionHandler.Clone()

Retrieves the child position handler associated with the current position.

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

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.

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

C#
public override PositionHandler GetParentHandler()
Returns:

PositionHandler

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

Overrides: PositionHandler.GetParentHandler()

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

C#
public override void MoveToFirst()

Overrides: PositionHandler.MoveToFirst()

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

C#
public override void MoveToLast()

Overrides: PositionHandler.MoveToLast()

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

C#
public override void MoveToNext()

Overrides: PositionHandler.MoveToNext()

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

C#
public override void MoveToPrevious()

Overrides: PositionHandler.MoveToPrevious()

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

C#
public void SetChildPosition(LayoutBox position)
Parameters:positionLayoutBox

The layout box whose position is to be set.