Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LayoutLine

Contains position information about one line of text in a title or annotation. This can be used to extract the actual text from a string or rendering attributes from a TextEditor instance.

Fields

FieldTypeDescription
startintegerRead only. The index of the first character in this line.
countintegerRead only. The number of characters in this line.
positiontupleRead only. The baseline position of the first character in the line as a tuple (x, y).
boundstupleRead only. The frame of the characters in this line as a tuple (x, y, width, height).