Class
SpanBoxPositionHandler

Handles the position of the span box in the document.

Definition

Namespace:Telerik.Windows.Documents

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class SpanBoxPositionHandler : InlineBoxPositionHandler

Inheritance: objectPositionHandlerInlineBoxPositionHandlerSpanBoxPositionHandler

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

Constructors

SpanBoxPositionHandler(SpanBoxPositionHandler)

Declaration

cs-api-definition
public SpanBoxPositionHandler(SpanBoxPositionHandler toCopy)

Parameters

toCopy

SpanBoxPositionHandler

SpanBoxPositionHandler(SpanLayoutBox)

Declaration

cs-api-definition
public SpanBoxPositionHandler(SpanLayoutBox spanBox)

Parameters

spanBox

SpanLayoutBox

Properties

CanMoveToNext

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

Declaration

cs-api-definition
public override bool CanMoveToNext { get; }

Property Value

bool

Overrides InlineBoxPositionHandler.CanMoveToNext

CanMoveToPrevious

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

Declaration

cs-api-definition
public override bool CanMoveToPrevious { get; }

Property Value

bool

Overrides InlineBoxPositionHandler.CanMoveToPrevious

CurrentPositionInSpanBox

Gets the current position within the span box.

Declaration

cs-api-definition
public int CurrentPositionInSpanBox { get; set; }

Property Value

int

CurrentSpanBox

Gets the current span box being handled by the SpanBoxPositionHandler.

Declaration

cs-api-definition
public SpanLayoutBox CurrentSpanBox { get; }

Property Value

SpanLayoutBox

Location

Represents the location of a span box in the document.

Declaration

cs-api-definition
public override PointF Location { get; }

Property Value

PointF

Overrides InlineBoxPositionHandler.Location

Methods

Clone()

Creates a duplicate of the current instance of the SpanBoxPositionHandler.

Declaration

cs-api-definition
public override PositionHandler Clone()

Returns

PositionHandler

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

Overrides InlineBoxPositionHandler.Clone()

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

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

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

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

Overrides PositionHandler.GetHashCode()

MoveToFirst()

Moves the position of the SpanBox to the first element.

Declaration

cs-api-definition
public override void MoveToFirst()

Overrides InlineBoxPositionHandler.MoveToFirst()

MoveToLast()

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

Declaration

cs-api-definition
public override void MoveToLast()

Overrides InlineBoxPositionHandler.MoveToLast()

MoveToLocation(PointF)

Moves the span box to the specified location.

Declaration

cs-api-definition
public bool MoveToLocation(PointF location)

Parameters

location

PointF

The point to which the span box should be moved.

Returns

bool

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

MoveToNext()

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

Declaration

cs-api-definition
public override void MoveToNext()

Overrides InlineBoxPositionHandler.MoveToNext()

MoveToPrevious()

Moves the span box position to the previous available position.

Declaration

cs-api-definition
public override void MoveToPrevious()

Overrides InlineBoxPositionHandler.MoveToPrevious()

ToString()

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

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current SpanBoxPositionHandler object.

Overrides InlineBoxPositionHandler.ToString()