コード例 #1
0
        /**
         * If there isn't currently a {@link ThemesTable} for the
         *  current Workbook, then creates one and sets it up.
         * After this, calls to {@link #getTheme()} won't give null
         */
        public void EnsureThemesTable()
        {
            if (theme != null)
            {
                return;
            }

            theme = (ThemesTable)workbook.CreateRelationship(XSSFRelation.THEME, XSSFFactory.GetInstance());
        }