Exemplo n.º 1
0
 public CombinedChunk(ITextChunk left, ITextChunk right)
 {
     _chunks    = new ITextChunk[2];
     _chunks[0] = left;
     _chunks[1] = right;
     _length    = left.Length + right.Length;
 }
Exemplo n.º 2
0
 public SeparatedChunk(string separator, ITextChunk left, ITextChunk right)
 {
     _separator = separator;
     _chunks    = new ITextChunk[2];
     _chunks[0] = left;
     _chunks[1] = right;
     _length    = left.Length + right.Length;
 }
Exemplo n.º 3
0
        public static string ToText(this ITextChunk chunk)
        {
            var sb     = new System.Text.StringBuilder(chunk.Length);
            var writer = new System.IO.StringWriter(sb);

            chunk.WriteTo(writer);
            return(sb.ToString());
        }
Exemplo n.º 4
0
 public WrappedChunk(WrappedTextProvider wrapper, ITextChunk chunk)
 {
     _text  = wrapper;
     _chunk = chunk;
 }