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); }
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); }
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); }
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); }
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); }