C# 在文档中设置边缘

C# 在文档中设置边缘,c#,asp.net,migradoc,C#,Asp.net,Migradoc,在这个表中,我做了setedge 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) 但它不起作用 要

在这个表中,我做了setedge

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)
但它不起作用

要设置第一行:

table.SetEdge(0, 0, table.Columns.Count, 1, Edge.Box, BorderStyle.Single, 2, Colors.Red);
注意顺序是:colBegin、rowBegin、countCols、countRows


我把它弄得又红又大以便看得清楚

你得到了什么?你期待什么?如果你根本不给SetEdge打电话,你会得到什么?问题可能在另一行代码中。不完全正确:参数是colBegin、rowBegin、countCols、countRows