示例#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;
        }
示例#3
0
文件: Workbook.cs 项目: spofa/xlio
 public Workbook()
 {
     Sheets       = new SheetCollection();
     DefaultFont  = new CellFont();
     DefinedNames = new DefinedNameCollection();
 }
示例#4
0
 public Workbook()
 {
     Sheets = new SheetCollection();
     DefaultFont = new CellFont();
     DefinedNames = new DefinedNameCollection();
 }