/** * Set the table style. If the style is not defined in the document, MS Word * will Set the table style to "Normal". * @param styleName - the style name to apply to this table */ public void SetStyleID(String styleName) { CT_TblPr tblPr = GetTrPr(); CT_String styleStr = tblPr.tblStyle; if (styleStr == null) { styleStr = tblPr.AddNewTblStyle(); } styleStr.val = (styleName); }
public void SetStyleID(string styleName) { CT_TblPr trPr = this.GetTrPr(); (trPr.tblStyle ?? trPr.AddNewTblStyle()).val = styleName; }