예제 #1
0
파일: XSSFFont.cs 프로젝트: xewn/Npoi.Core
        /**
         * set font scheme property
         *
         * @param scheme - FontScheme enum value
         * @see FontScheme
         */
        public void SetScheme(FontScheme scheme)
        {
            Npoi.Core.OpenXmlFormats.Spreadsheet.CT_FontScheme ctFontScheme = _ctFont.sizeOfSchemeArray() == 0 ? _ctFont.AddNewScheme() : _ctFont.GetSchemeArray(0);
            ST_FontScheme val = (ST_FontScheme)scheme.Value;

            ctFontScheme.val = val;
        }
예제 #2
0
파일: XSSFFont.cs 프로젝트: xewn/Npoi.Core
 /**
  * get the font scheme property.
  * is used only in StylesTable to create the default instance of font
  *
  * @return FontScheme
  * @see Npoi.Core.XSSF.model.StylesTable#CreateDefaultFont()
  */
 public FontScheme GetScheme()
 {
     Npoi.Core.OpenXmlFormats.Spreadsheet.CT_FontScheme scheme = _ctFont.sizeOfSchemeArray() == 0 ? null : _ctFont.GetSchemeArray(0);
     return(scheme == null ? FontScheme.NONE : FontScheme.ValueOf((int)scheme.val));
 }