示例#1
0
        private static TablixCorner CreateTablixCorner()
        {
            var textRuns1 = new TextRuns(new TextRun {
                Value = "Group", FontWeight = FontWeight.Bold
            });

            textRuns1.Add(new TextRun {
                Value = "", FontFamily = "Wingdings"
            });
            var textRuns2 = new TextRuns(new TextRun {
                Value = "", FontFamily = "Wingdings"
            });

            textRuns2.Add(new TextRun {
                Value = "Period", FontWeight = FontWeight.Bold
            });

            var textbox = new Textbox(new Paragraph(textRuns1))
            {
                TextboxStyle = new TextboxStyle()
            };

            textbox.AddParagraph(new Paragraph(textRuns2));
            return
                (new TablixCorner(
                     new TablixCornerRows(new TablixCornerRow(new TablixCornerCell(new CellContents(textbox))))));
        }