如何用vc分别控制一个WORD表格的单元格的边框格式,要求上下左右4个边框都不同的边框样式?
已知代码如下:
oSel.EndKey(COleVariant((short)wdStory), COleVariant((short)wdMove));
Range Rng = oSel.GetRange();
Tables Tbls = oDoc.GetTables();
Table Tbl = Tbls.Add(Rng, 5, 5, vOpt, vOpt);
Borders bords = Tbl.GetBorders();
bords.SetOutsideLineStyle(wdLineStyleThinThickSmallGap);
bords.SetOutsideColorIndex(wdBlue);
bords.SetInsideLineStyle(wdLineStyleDot);
bords.SetInsideColorIndex(wdGray50);
问题是:
Borders bords = Tbl.GetBorders();
bords.SetOutsideLineStyle(wdLineStyleThinThickSmallGap);
//这两句里,是对整个边框设置边框样式(wdLineStyleThinThickSmallGap),可否单独对上下左右4个边框设置不同的边框样式?
请指教!