/// <summary>
 /// Returns the end index of the text. This index is the index of the first
 /// character following the end of the text.
 /// </summary>
 ///
 /// <returns>the index after the last character in the text</returns>
 public virtual int GetEndIndex()
 {
     return(iterator.GetLength());
 }