示例#1
0
        public void SetInsideHBorder(XWPFBorderType type, int size, int space, String rgbColor)
        {
            CT_TblPr      tblPr = GetTrPr();
            CT_TblBorders ctb   = tblPr.IsSetTblBorders() ? tblPr.tblBorders : tblPr.AddNewTblBorders();
            CT_Border     b     = ctb.IsSetInsideH() ? ctb.insideH : ctb.AddNewInsideH();

            b.val   = (xwpfBorderTypeMap[(type)]);
            b.sz    = (ulong)size;
            b.space = (ulong)space;
            b.color = (rgbColor);
        }
示例#2
0
文件: XWPFTable.cs 项目: zzy092/npoi
        public void SetRightBorder(XWPFBorderType type, int size, int space, String rgbColor)
        {
            CT_TblPr      tblPr = GetTrPr();
            CT_TblBorders ctb   = tblPr.IsSetTblBorders() ? tblPr.tblBorders : tblPr.AddNewTblBorders();
            CT_Border     b     = ctb.right != null ? ctb.right : ctb.AddNewRight();

            b.val   = xwpfBorderTypeMap[type];
            b.sz    = (ulong)size;
            b.space = (ulong)space;
            b.color = (rgbColor);
        }
示例#3
0
        public XWPFBorderType GetInsideVBorderType()
        {
            XWPFBorderType bt = XWPFBorderType.NONE;

            CT_TblPr tblPr = GetTrPr();

            if (tblPr.IsSetTblBorders())
            {
                CT_TblBorders ctb = tblPr.tblBorders;
                if (ctb.IsSetInsideV())
                {
                    CT_Border border = ctb.insideV;
                    bt = stBorderTypeMap[border.val];
                }
            }
            return(bt);
        }
示例#4
0
文件: XWPFTable.cs 项目: WPG/npoi
 public void SetInsideVBorder(XWPFBorderType type, int size, int space, String rgbColor)
 {
     CT_TblPr tblPr = GetTrPr();
     CT_TblBorders ctb = tblPr.IsSetTblBorders() ? tblPr.tblBorders : tblPr.AddNewTblBorders();
     CT_Border b = ctb.IsSetInsideV() ? ctb.insideV : ctb.AddNewInsideV();
     b.val = (xwpfBorderTypeMap[type]);
     b.sz = (ulong)size;
     b.space = (ulong)space;
     b.color = (rgbColor);
 }
示例#5
0
 public void SetRightBorder(XWPFBorderType type, int size, int space, String rgbColor)
 {
     CT_TblPr tblPr = GetTrPr();
     CT_TblBorders ctb = tblPr.IsSetTblBorders() ? tblPr.tblBorders : tblPr.AddNewTblBorders();
     CT_Border b = ctb.right != null ? ctb.right : ctb.AddNewRight();
     b.val = xwpfBorderTypeMap[type];
     b.sz = (ulong)size;
     b.space = (ulong)space;
     b.color = (rgbColor);
 }