public void write_single_section_of_text_with_numbers()
        {
            var writer = new TreeWriter(new Numbered());
            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.WriteAll(Console.Out);
        }
Example #2
0
        public void write_single_section_of_text()
        {
            var writer = new TreeWriter();

            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.WriteAll(Console.Out);
        }
Example #3
0
        public void write_single_section_of_text_with_outline_with_bars()
        {
            var writer = new TreeWriter(new Outline());

            "abcdefghijk".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.StartSection(5);
            "LMNOPQRS".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));
            writer.EndSection();

            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.WriteAll(Console.Out);
        }
        public void write_single_section_of_text_with_outline_with_bars()
        {
            var writer = new TreeWriter(new Outline());
            "abcdefghijk".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));


            writer.StartSection(5);
            "LMNOPQRS".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));
            writer.EndSection();

            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.WriteAll(Console.Out);
        }
Example #5
0
        public void nested_bullets()
        {
            var writer = new TreeWriter();

            writer.Line("First List");
            writer.StartSection <Astericks>();

            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.EndSection();

            writer.Line("More text");

            writer.StartSection <Numbered>();
            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.EndSection();

            writer.WriteAll(Console.Out);
        }
Example #6
0
        public void deep_nested_sections_with_left_border()
        {
            var writer = new TreeWriter();

            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));

            writer.StartSection <Astericks>();
            "LMNOPQRS".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));

            writer.StartSection <Numbered>();
            "TUVWXYZ".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));
            writer.EndSection();

            "1234567".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));
            writer.EndSection();

            "GHIJKLMNO".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));

            writer.WriteAll(Console.Out);
        }
        public void nested_bullets()
        {
            var writer = new TreeWriter();
            writer.Line("First List");
            writer.StartSection<Astericks>();

            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));

            writer.EndSection();

            writer.Line("More text");

            writer.StartSection<Numbered>();
            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(10, c)));


            writer.EndSection();


            writer.WriteAll(Console.Out);
        }
        public void deep_nested_sections_with_left_border()
        {
            var writer = new TreeWriter();
            "ABCDEFGHIJK".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));

            writer.StartSection<Astericks>();
            "LMNOPQRS".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));

            writer.StartSection<Numbered>();
            "TUVWXYZ".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));
            writer.EndSection();

            "1234567".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));
            writer.EndSection();

            "GHIJKLMNO".ToCharArray().Each(c => writer.Line("".PadRight(20, c)));


            writer.WriteAll(Console.Out);
        }
Example #9
0
 public void Write(TextWriter writer)
 {
     _writer.WriteAll(writer);
 }