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

Represents a single position at an inline layout box without tracking an offset inside its text.

Definition

Namespace:Telerik.WinForms.Documents

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class InlineBoxPositionHandler : PositionHandler

Inheritance: objectPositionHandlerInlineBoxPositionHandler

Derived Classes: SpanBoxPositionHandler

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

Constructors

Creates a handler for the same inline layout box as another handler.

C#
public InlineBoxPositionHandler(InlineBoxPositionHandler toCopy)
Parameters:toCopyInlineBoxPositionHandler

The handler whose inline layout box is reused.

Initializes a handler for the specified inline layout box.

C#
public InlineBoxPositionHandler(InlineLayoutBox box)
Parameters:boxInlineLayoutBox

The inline layout box represented by the position.

Properties

Gets false because this handler represents one position and does not track an inline offset.

C#
public override bool CanMoveToNext { get; }

Overrides: PositionHandler.CanMoveToNext

Gets false because this handler represents one position and does not track an inline offset.

C#
public override bool CanMoveToPrevious { get; }

Overrides: PositionHandler.CanMoveToPrevious

Gets the inline layout box represented by this position.

C#
public InlineLayoutBox CurrentInline { get; }

Gets the top-left corner of the inline box's control bounds.

C#
public override PointF Location { get; }

Overrides: PositionHandler.Location

Methods

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

C#
public override PositionHandler Clone()
Returns:

PositionHandler

A position handler representing the copied state.

Overrides: PositionHandler.Clone()

Creates a word-level handler for this inline box.

C#
public override PositionHandler GetParentHandler()
Returns:

PositionHandler

A WordPositionHandler rooted at this box.

Overrides: PositionHandler.GetParentHandler()

Not supported because this handler represents a single position.

C#
public override void MoveToFirst()
Exceptions: InvalidOperationException

The operation is not supported by this handler.

Overrides: PositionHandler.MoveToFirst()

Leaves the handler at its only position.

C#
public override void MoveToLast()

Overrides: PositionHandler.MoveToLast()

Not supported because this handler represents a single position.

C#
public override void MoveToNext()
Exceptions: InvalidOperationException

The operation is not supported by this handler.

Overrides: PositionHandler.MoveToNext()

Not supported because this handler represents a single position.

C#
public override void MoveToPrevious()
Exceptions: InvalidOperationException

The operation is not supported by this handler.

Overrides: PositionHandler.MoveToPrevious()

Returns the associated inline's string representation when available.

C#
public override string ToString()
Returns:

string

The associated inline's string representation, or the base representation when no inline is available.

Overrides: object.ToString()