skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SpanBoxPositionHandler

Handles the position of the span box in the document.

Inheritance
System.Object
PositionHandler
InlineBoxPositionHandler
SpanBoxPositionHandler
Inherited Members
InlineBoxPositionHandler.GetParentHandler()
InlineBoxPositionHandler.CurrentInline
PositionHandler.Box
Namespace: Telerik.Windows.Documents
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public class SpanBoxPositionHandler : InlineBoxPositionHandler

Constructors

SpanBoxPositionHandler(SpanLayoutBox)

Declaration
public SpanBoxPositionHandler(SpanLayoutBox spanBox)
Parameters
SpanLayoutBox spanBox

SpanBoxPositionHandler(SpanBoxPositionHandler)

Declaration
public SpanBoxPositionHandler(SpanBoxPositionHandler toCopy)
Parameters
SpanBoxPositionHandler toCopy

Properties

CanMoveToNext

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

Declaration
public override bool CanMoveToNext { get; }
Property Value
System.Boolean

Overrides
InlineBoxPositionHandler.CanMoveToNext

CanMoveToPrevious

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

Declaration
public override bool CanMoveToPrevious { get; }
Property Value
System.Boolean

Overrides
InlineBoxPositionHandler.CanMoveToPrevious

CurrentPositionInSpanBox

Gets the current position within the span box.

Declaration
public int CurrentPositionInSpanBox { get; set; }
Property Value
System.Int32

CurrentSpanBox

Gets the current span box being handled by the SpanBoxPositionHandler.

Declaration
public SpanLayoutBox CurrentSpanBox { get; }
Property Value
SpanLayoutBox

Location

Represents the location of a span box in the document.

Declaration
public override PointF Location { get; }
Property Value
PointF

Overrides
InlineBoxPositionHandler.Location

Methods

Clone()

Creates a duplicate of the current instance of the SpanBoxPositionHandler.

Declaration
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
public override bool Equals(object obj)
Parameters
System.Object obj

The object to compare with the current instance.

Returns
System.Boolean

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
public override int GetHashCode()
Returns
System.Int32

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
public override void MoveToFirst()
Overrides
InlineBoxPositionHandler.MoveToFirst()

MoveToLast()

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

Declaration
public override void MoveToLast()
Overrides
InlineBoxPositionHandler.MoveToLast()

MoveToLocation(PointF)

Moves the span box to the specified location.

Declaration
public bool MoveToLocation(PointF location)
Parameters
PointF location

The point to which the span box should be moved.

Returns
System.Boolean

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

MoveToNext()

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

Declaration
public override void MoveToNext()
Overrides
InlineBoxPositionHandler.MoveToNext()

MoveToPrevious()

Moves the span box position to the previous available position.

Declaration
public override void MoveToPrevious()
Overrides
InlineBoxPositionHandler.MoveToPrevious()

ToString()

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

Declaration
public override string ToString()
Returns
System.String

A string that represents the current SpanBoxPositionHandler object.

Overrides
InlineBoxPositionHandler.ToString()

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.