예제 #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);
        }
예제 #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;
        }