예제 #1
0
 public static TableCellBuilder AddFormRowBox(TableCellBuilder outerCellBuilder,
                                              string text = "$")
 {
     return(outerCellBuilder.AddTableToCell(tableBuilder =>
     {
         tableBuilder
         .SetWidth(XUnit.FromPercent(76))
         .SetContentRowStyleMinHeight(25)
         .SetAlignment(HorizontalAlignment.Right)
         .AddColumnPercentToTable("", 100)
         .SetBorderStroke(Stroke.Solid)
         .SetBorderColor(Color.Black)
         .SetBorderWidth(1.5f);
         var cellBuilder = tableBuilder.AddRow().SetMinHeight(25).AddCell();
         cellBuilder
         .SetVerticalAlignment(VerticalAlignment.Bottom)
         .SetPadding(0, 0, 0, 4)
         .AddParagraph()
         .AddTabSymbol()
         .SetFont(FNT7_2)
         .AddTabulation(6, TabulationType.Right, TabulationLeading.None)
         .AddTextToParagraph(text, addTabulationSymbol: true)
         .AddTabulation(72, TabulationType.Right, TabulationLeading.BottomLine);
     }));
 }