Esempio n. 1
0
        public CellStyle Apply(CellStyle style)
        {
            if (style.alignment != null)
            {
                alignment = style.alignment;
            }

            if (style.border != null)
            {
                border = style.border;
            }

            if (style.fill != null)
            {
                fill = style.fill;
            }

            if (style.font != null)
            {
                font = style.font;
            }

            if (style.format != null)
            {
                format = style.format;
            }

            return(this);
        }
Esempio n. 2
0
        public CellStyle Apply(CellStyle style)
        {
            if (style.alignment != null)
                alignment = style.alignment;

            if (style.border != null)
                border = style.border;

            if (style.fill != null)
                fill = style.fill;

            if (style.font != null)
                font = style.font;

            if (style.format != null)
                format = style.format;

            return this;
        }