Example #1
0
 public void Write(TextWriter writer, CharacterWidth[] widths)
 {
     for (int i = 0; i < widths.Length; i++)
     {
         CharacterWidth width = widths[i];
         writer.Write(_contents[i].PadRight(width.Width));
     }
 }
Example #2
0
 public void OverwriteCounts(CharacterWidth[] widths)
 {
     for (int i = 0; i < widths.Length; i++)
     {
         CharacterWidth width = widths[i];
         width.SetWidth(_contents[i].Length);
     }
 }
Example #3
0
 public void Write(TextWriter writer, CharacterWidth[] widths)
 {
     for (int i = 0; i < widths.Length; i++)
     {
         CharacterWidth width = widths[i];
         writer.Write(_contents[i].PadRight(width.Width));
     }
 }
Example #4
0
 public void OverwriteCounts(CharacterWidth[] widths)
 {
     for (int i = 0; i < widths.Length; i++)
     {
         CharacterWidth width = widths[i];
         width.SetWidth(_contents[i].Length);
     }
 }
Example #5
0
        public void Write(StringWriter writer)
        {
            CharacterWidth[] widths = CharacterWidth.For(_columnCount);

            foreach (Line line in _lines)
            {
                line.OverwriteCounts(widths);
            }

            for (int i = 0; i < widths.Length - 1; i++)
            {
                CharacterWidth width = widths[i];
                width.Add(5);
            }

            foreach (Line line in _lines)
            {
                writer.WriteLine();
                line.Write(writer, widths);
            }
        }
Example #6
0
 public void Write(TextWriter writer, CharacterWidth[] widths)
 {
     writer.WriteLine(Contents);
 }
Example #7
0
 public void OverwriteCounts(CharacterWidth[] widths)
 {
     // no-op
 }