RangeInline
RangeInline:
Pairs an inline element with its location in the text view.
Remarks
Section titled “Remarks”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
Properties
Section titled “Properties”range:
Range
The location of the inline element within the text view.
Remarks
Section titled “Remarks”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
Section titled “inline”inline:
Inline
The inline element at this location.
Remarks
Section titled “Remarks”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.