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 SetInsideHBorder(XWPFTable.XWPFBorderType type, int size, int space, string rgbColor) { CT_TblPr trPr = this.GetTrPr(); CT_TblBorders ctTblBorders = trPr.IsSetTblBorders() ? trPr.tblBorders : trPr.AddNewTblBorders(); CT_Border ctBorder = ctTblBorders.IsSetInsideH() ? ctTblBorders.insideH : ctTblBorders.AddNewInsideH(); ctBorder.val = XWPFTable.xwpfBorderTypeMap[type]; ctBorder.sz = (ulong)size; ctBorder.space = (ulong)space; ctBorder.color = rgbColor; }
public string GetInsideHBorderColor() { string str = (string)null; CT_TblPr trPr = this.GetTrPr(); if (trPr.IsSetTblBorders()) { CT_TblBorders tblBorders = trPr.tblBorders; if (tblBorders.IsSetInsideH()) { str = tblBorders.insideH.color; } } return(str); }
public int GetInsideHBorderSpace() { int num = -1; CT_TblPr trPr = this.GetTrPr(); if (trPr.IsSetTblBorders()) { CT_TblBorders tblBorders = trPr.tblBorders; if (tblBorders.IsSetInsideH()) { num = (int)tblBorders.insideH.space; } } return(num); }
public XWPFTable.XWPFBorderType GetInsideHBorderType() { XWPFTable.XWPFBorderType xwpfBorderType = XWPFTable.XWPFBorderType.NONE; CT_TblPr trPr = this.GetTrPr(); if (trPr.IsSetTblBorders()) { CT_TblBorders tblBorders = trPr.tblBorders; if (tblBorders.IsSetInsideH()) { CT_Border insideH = tblBorders.insideH; xwpfBorderType = XWPFTable.stBorderTypeMap[insideH.val]; } } return(xwpfBorderType); }
public String GetInsideHBorderColor() { String color = null; CT_TblPr tblPr = GetTrPr(); if (tblPr.IsSetTblBorders()) { CT_TblBorders ctb = tblPr.tblBorders; if (ctb.IsSetInsideH()) { CT_Border border = ctb.insideH; color = border.color; } } return(color); }
public int GetInsideHBorderSpace() { int space = -1; CT_TblPr tblPr = GetTrPr(); if (tblPr.IsSetTblBorders()) { CT_TblBorders ctb = tblPr.tblBorders; if (ctb.IsSetInsideH()) { CT_Border border = ctb.insideH; space = (int)border.space; } } return(space); }
public XWPFBorderType GetInsideHBorderType() { XWPFBorderType bt = XWPFBorderType.NONE; CT_TblPr tblPr = GetTrPr(); if (tblPr.IsSetTblBorders()) { CT_TblBorders ctb = tblPr.tblBorders; if (ctb.IsSetInsideH()) { CT_Border border = ctb.insideH; bt = stBorderTypeMap[border.val]; } } return(bt); }