TextBoxSnapshot

@Serializable
data class TextBoxSnapshot(val layoutIndex: List<Int>, val bounds: List<List<Double>>, val start: List<Int>, val length: List<Int>)

Table of details of the post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.

Constructors

Link copied to clipboard
constructor(layoutIndex: List<Int>, bounds: List<List<Double>>, start: List<Int>, length: List<Int>)

Properties

Link copied to clipboard

The absolute position bounding box.

Link copied to clipboard

Index of the layout tree node that owns this box collection.

Link copied to clipboard

The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.

Link copied to clipboard
val start: List<Int>

The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.