コード例 #1
0
ファイル: XWPFTable.cs プロジェクト: thachgiasoft/shuijin
        /**
         * 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);
        }
コード例 #2
0
ファイル: XWPFTable.cs プロジェクト: thachgiasoft/shuijin
        public void SetStyleID(string styleName)
        {
            CT_TblPr trPr = this.GetTrPr();

            (trPr.tblStyle ?? trPr.AddNewTblStyle()).val = styleName;
        }