Maq*_*ood 5 c# pdfsharp migradoc
我想设置行的最小高度.但似乎有限制我使用下面的代码[ http://forum.pdfsharp.de/viewtopic.php?f=2&t=2812 ]
var spacerRow = t1.AddRow();
spacerRow.Height = "0.1mm";
var para2 = new Paragraph();
para2.Format.LineSpacingRule = LineSpacingRule.Exactly;
para2.Format.LineSpacing = "0.1mm";
para2.Format.SpaceBefore = 0;
para2.Format.SpaceAfter = 0;
spacerRow.Cells[0].Add(para2);
Run Code Online (Sandbox Code Playgroud)
但高度并没有进一步降低.间隔行位于边框行之间,如附图所示.
如果要对所有行执行此操作:
Table table = new Table();
table.Format.Alignment = ParagraphAlignment.Center;
table.Rows.HeightRule = RowHeightRule.Exactly;
table.Rows.Height = 5;
Run Code Online (Sandbox Code Playgroud)
对于单行:
row = table.AddRow();
row.HeightRule = RowHeightRule.Exactly;
row.Height = 5;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2147 次 |
| 最近记录: |