Code example for Layout

Methods: getLineCount, getLineForOffset, getLineStart, getOffsetForHorizontal, getParagraphDirection, getPrimaryHorizontal