Пример #1
0
        /**
         * set font scheme property
         *
         * @param scheme - FontScheme enum value
         * @see FontScheme
         */
        public void SetScheme(FontScheme scheme)
        {
            NPOI.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
 public bool Equals(ST_FontScheme other)
 {
     if (other == null)
     {
         return(false);
     }
     return(_ooxmlEnumerationValue == other._ooxmlEnumerationValue);
 }
Пример #3
0
 static ST_FontScheme()
 {
     none  = new ST_FontScheme("none");
     major = new ST_FontScheme("major");
     minor = new ST_FontScheme("minor");
 }
Пример #4
0
 static ST_FontScheme()
 {
     ST_FontScheme.none  = new ST_FontScheme("none");
     ST_FontScheme.major = new ST_FontScheme("major");
     ST_FontScheme.minor = new ST_FontScheme("minor");
 }