Beispiel #1
0
        public FontScheme GetScheme()
        {
            CT_FontScheme ctFontScheme = this._ctFont.sizeOfSchemeArray() == 0 ? (CT_FontScheme)null : this._ctFont.GetSchemeArray(0);

            if (ctFontScheme != null)
            {
                return(FontScheme.ValueOf((int)ctFontScheme.val));
            }
            return(FontScheme.NONE);
        }
Beispiel #2
0
 /**
  * get the font scheme property.
  * is used only in StylesTable to create the default instance of font
  *
  * @return FontScheme
  * @see NPOI.XSSF.model.StylesTable#CreateDefaultFont()
  */
 public FontScheme GetScheme()
 {
     NPOI.OpenXmlFormats.Spreadsheet.CT_FontScheme scheme = _ctFont.sizeOfSchemeArray() == 0 ? null : _ctFont.GetSchemeArray(0);
     return(scheme == null ? FontScheme.NONE : FontScheme.ValueOf((int)scheme.val));
 }