Getting a ITextBuffer and length of buffer contents.