Navigates the valid child layout boxes of a container while retaining the currently selected child.
Definition
Namespace:Telerik.WinForms.Documents
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ContainerPositionHandler : PositionHandler
Inheritance: objectPositionHandlerContainerPositionHandler
Derived Classes:
Inherited Members
Constructors
Initializes a container handler without selecting a child layout box.
Fields
The currently selected child layout box.
protected LayoutBox childPosition
Properties
Gets whether this handler can advance to the next position at its navigation level.
public override bool CanMoveToNext { get; }
Overrides:
Gets whether this handler can move to the previous position at its navigation level.
public override bool CanMoveToPrevious { get; }
Overrides:
Methods
Creates a copy of this handler's current navigation state.
public override PositionHandler Clone()
A position handler representing the copied state.
Overrides:
Gets a handler for the current child, or selects a valid child when no child is selected.
public virtual PositionHandler GetChildPositionHandler(bool first)
true to keep the returned handler at its initial position or select the first valid child; false to move it to its last position or select the last valid child.
Returns:A handler for the selected child, or null when the container has no valid child position.
Creates a handler for the parent layout box, if one exists.
public override PositionHandler GetParentHandler()
The parent handler, or null when this handler represents the root box.
Overrides:
Moves to the first position represented by this handler.
public override void MoveToFirst()
Overrides:
Moves to the last position represented by this handler.
public override void MoveToLast()
Overrides:
Advances to the next position at this handler's navigation level.
public override void MoveToNext()
Overrides:
Moves to the previous position at this handler's navigation level.
public override void MoveToPrevious()
Overrides:
Sets the current child position, advancing to the next valid position when the supplied box is invalid.
public void SetChildPosition(LayoutBox position)
The child layout box to use as the current position.