Code example for Layout

Methods: getText

0
    public CharSequence getText() {
        return layout.getText();
    } 
 
    public int getLastCharPosition() { 
        return charStart + layout.getText().length();
    } 
 
    public String toString() {
        return String.format(
                "Column: first character at %s, last character at %s: \n %s", 
                charStart, getLastCharPosition(), layout.getText());
    } 
}