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

Handles the position of the span box in the document.

Definition

Namespace:Telerik.Windows.Documents

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class SpanBoxPositionHandler : InlineBoxPositionHandler

Inheritance: objectPositionHandlerInlineBoxPositionHandlerSpanBoxPositionHandler

Inherited Members InlineBoxPositionHandler.GetParentHandler()InlineBoxPositionHandler.CurrentInlinePositionHandler.Box

Constructors

C#
public SpanBoxPositionHandler(SpanBoxPositionHandler toCopy)
Parameters:toCopySpanBoxPositionHandler
C#
public SpanBoxPositionHandler(SpanLayoutBox spanBox)
Parameters:spanBoxSpanLayoutBox

Properties

Determines whether the span box can be moved to the next position.

C#
public override bool CanMoveToNext { get; }

Overrides: InlineBoxPositionHandler.CanMoveToNext

Determines whether the span box can be moved to the previous position.

C#
public override bool CanMoveToPrevious { get; }

Overrides: InlineBoxPositionHandler.CanMoveToPrevious

Gets the current position within the span box.

C#
public int CurrentPositionInSpanBox { get; set; }

Gets the current span box being handled by the SpanBoxPositionHandler.

C#
public SpanLayoutBox CurrentSpanBox { get; }

Represents the location of a span box in the document.

C#
public override PointF Location { get; }

Overrides: InlineBoxPositionHandler.Location

Methods

Creates a duplicate of the current instance of the SpanBoxPositionHandler.

C#
public override PositionHandler Clone()
Returns:

PositionHandler

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

Overrides: InlineBoxPositionHandler.Clone()

Determines whether the specified object is equal to the current SpanBoxPositionHandler instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current instance.

Returns:

bool

true if the specified object is equal to the current instance; otherwise, false.

Overrides: PositionHandler.Equals(object)

Calculates a hash code for the current instance of the SpanBoxPositionHandler.

C#
public override int GetHashCode()
Returns:

int

A hash code that is unique to the current instance of the SpanBoxPositionHandler.

Overrides: PositionHandler.GetHashCode()

Moves the position of the SpanBox to the first element.

C#
public override void MoveToFirst()

Overrides: InlineBoxPositionHandler.MoveToFirst()

Moves the position to the last span element in the current context.

C#
public override void MoveToLast()

Overrides: InlineBoxPositionHandler.MoveToLast()

Moves the span box to the specified location.

C#
public bool MoveToLocation(PointF location)
Parameters:locationPointF

The point to which the span box should be moved.

Returns:

bool

Returns a boolean value indicating whether the move operation was successful.

Moves the span box to the next position in the document.

C#
public override void MoveToNext()

Overrides: InlineBoxPositionHandler.MoveToNext()

Moves the span box position to the previous available position.

C#
public override void MoveToPrevious()

Overrides: InlineBoxPositionHandler.MoveToPrevious()

Returns a string representation of the current instance of the SpanBoxPositionHandler class.

C#
public override string ToString()
Returns:

string

A string that represents the current SpanBoxPositionHandler object.

Overrides: InlineBoxPositionHandler.ToString()