Code example for Layout

Methods: getLineCount, getLineForOffset, getOffsetForHorizontal, getParagraphDirection, getPrimaryHorizontal