Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Paragraph p = new Paragraph("hello word!");
            p.ToDocx();
            Paragraph p2 = new Paragraph("the second para.");
            p2.ToDocx();

            List i = new List("1", "2");
            i.ToDocx();

            Chapter c1 = new Chapter(1, "my first chapter", new List<IDocx>() { new Paragraph("lalalala"),new List("bar","foo","ldfjiaoj")});
            c1.ToDocx();
        }
Example #2
0
 public SubChapter(int Number, string Title,List<IDocx> Content)
     : base(Number,Title,Content)
 {
 }
Example #3
0
 public Chapter(int Number, string Title, List<IDocx> Content)
 {
     number = Number;
     title = Title;
     content = Content;
 }