Skip to content
Document Authoring DA  API Docs v1.10.0
npmGitHub

RangeInline

RangeInline:

Pairs an inline element with its location in the text view.

RangeInline combines an inline element with the Range indicating where it appears in the text view. This type is returned by TextView.inlines, allowing you to both inspect inline elements and know their positions for further operations.

The range property identifies the exact location of the inline element, which you can use with other TextView methods like TextView.setFormatting or TextView.setText to manipulate that specific range.

This pairing is essential because:

  • You need the inline element to inspect its type and properties
  • You need the range to perform operations on that specific element

range: Range

The location of the inline element within the text view.

An opaque Range object specifying where this inline element appears. This range can be passed to TextView methods to manipulate the element (e.g., TextView.setFormatting).


inline: Inline

The inline element at this location.

The actual inline element, which could be text, an image, a line break, or any other inline type. Use the type property to discriminate and access type-specific methods.