/// <summary> Creates a TextOffset that exists after all content in the buffer. </summary>
 /// <param name="buffer"> The buffer for which the text offset should be created. </param>
 /// <returns> The offset representing the content after the buffer. </returns>
 internal static TextOffset CreateAfterTextOffset(StringFragmentBuffer buffer)
 {
     return(new TextOffset(
                buffer.NumberOfChars,
                buffer.GraphemeLength,
                0));
 }
Esempio n. 2
0
 /// <summary> TextBlockContent constructor. </summary>
 private TextBlockContent(string text)
 {
     _buffer = new StringFragmentBuffer(text);
 }