TextRange () { int endOffset = myChildren.length == 0 ? myStartOffset + toString().length() : myChildren[myChildren.length-1].getTextRange().getEndOffset(); return new TextRange(myStartOffset, endOffset); }