2013-02-13 34 views
1

在migraDoc表组边沿我做setedge像在MigraDoc

t.SetEdge(0, 0, t.Columns.Count, t.Rows.Count, Edge.Box, BorderStyle.Single, 0.5, Colors.Black) 

它为全表的边缘。但我不想边缘的桌子的头饰。我试过像

t.SetEdge(0, 1, t.Columns.Count, t.Rows.Count, Edge.Box, BorderStyle.Single, 0.5, Colors.Black) 

但它不工作。

+0

您能得到什么?你能指望什么?当你根本不打电话给SetEdge时,你会得到什么?问题可能出现在另一行代码中。 – 2013-02-13 11:09:05

回答

2

要设置第一行:

table.SetEdge(0, 0, table.Columns.Count, 1, Edge.Box, BorderStyle.Single, 2, Colors.Red); 

注意顺序:colBegin,rowBegin,countCols,countRows

我让红色和大型看到它很好

+0

不太正确:参数是colBegin,rowBegin,countCols,countRows – f0rza 2015-06-03 08:23:53

+1

@ f0rza你是对的。我会编辑他的答案。 – 2015-09-29 20:47:36