Tracks a character position within a span layout box and maps that offset to document coordinates.
Definition
Namespace:Telerik.WinForms.Documents
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class SpanBoxPositionHandler : InlineBoxPositionHandler
Inheritance: objectPositionHandlerInlineBoxPositionHandlerSpanBoxPositionHandler
Inherited Members
Constructors
Creates a handler for the same span and character position as another handler.
public SpanBoxPositionHandler(SpanBoxPositionHandler toCopy)
The handler whose span and current character position are copied.
Initializes a character-position handler for the specified span layout box.
public SpanBoxPositionHandler(SpanLayoutBox spanBox)
The span layout box whose text positions are navigated.
Properties
Gets whether another character position remains after the current index in this span.
public override bool CanMoveToNext { get; }
Overrides:
Gets whether a character position precedes the current index in this span.
public override bool CanMoveToPrevious { get; }
Overrides:
Gets or sets the current character index within the span's text.
public int CurrentPositionInSpanBox { get; set; }
The zero-based character index.
For non-empty text, setting a value outside the text bounds throws on WinForms targets. Assignments for empty text differ across target frameworks.
Gets the span layout box containing the current position.
public SpanLayoutBox CurrentSpanBox { get; }
Methods
Creates a copy of this handler's current navigation state.
public override PositionHandler Clone()
A position handler representing the copied state.
Overrides:
Returns a hash code that includes both the span box and character index.
Not supported because this handler represents a single position.
public override void MoveToFirst()
The operation is not supported by this handler.
Overrides:
Leaves the handler at its only position.
public override void MoveToLast()
Overrides:
Moves the current character index to the text split nearest the specified point within this span.
Not supported because this handler represents a single position.
public override void MoveToNext()
The operation is not supported by this handler.
Overrides:
Not supported because this handler represents a single position.
public override void MoveToPrevious()
The operation is not supported by this handler.
Overrides:
Returns a string containing the span box and current character index.
public override string ToString()
The span box and index in diagnostic form.
Overrides: