/** * Set the vertical alignment of the cell. * @param vAlign - the desired alignment enum value */ public void SetVerticalAlignment(XWPFVertAlign vAlign) { CT_TcPr tcpr = ctTc.IsSetTcPr() ? ctTc.tcPr : ctTc.AddNewTcPr(); CT_VerticalJc va = tcpr.AddNewVAlign(); va.val = (alignMap[(vAlign)]); }
/** * Get the vertical alignment of the cell. * @return the cell alignment enum value */ public XWPFVertAlign GetVerticalAlignment() { XWPFVertAlign vAlign = XWPFVertAlign.TOP; CT_TcPr tcpr = ctTc.tcPr; if (ctTc != null) { CT_VerticalJc va = tcpr.vAlign; vAlign = stVertAlignTypeMap[(va.val)]; } return(vAlign); }
/** * Set the vertical alignment of the cell. * @param vAlign - the desired alignment enum value */ public void SetVerticalAlignment(XWPFVertAlign vAlign) { CT_TcPr tcpr = ctTc.IsSetTcPr() ? ctTc.tcPr : ctTc.AddNewTcPr(); CT_VerticalJc va = tcpr.AddNewVAlign(); va.val = (alignMap[(vAlign)]); }