using Aspose.Cells; using System; using System.Collections.Generic; using System.Text; namespace Bowin.Common.Office { public enum HeaderAndFooterSection { Left = 0, Center = 1, Right = 2 } public class HeaderAndFooterFormater { public HeaderAndFooterSection Section { get; set; } public Func Formater { get; set; } } public class InsertColumnItem { public int ColumnIndex { get; set; } public int InsertCount { get; set; } } public class AsposeCellItem : CellItem { public Func Style { get; set; } } public class AsposeListItem : ListItem { public AsposeListItem() { StyleList = new List(); MergeList = new List(); IsInsertRow = true; } public Dictionary AutoHeightRowAndPx { get; set; } public bool IsInsertRow { get; set; } public List StyleList { get; set; } public List MergeList { get; set; } } public class AsposePageItem : PageItem { public AsposePageItem() : base() { MergeList = new List(); InsertColumnItemList = new List(); HeaderFormaterList = new List(); FooterFormaterList = new List(); ColumnSequenceList = new List(); FormularList = new List(); } public List InsertColumnItemList { get; set; } public List MergeList { get; set; } public List HeaderFormaterList { get; set; } public List FooterFormaterList { get; set; } public List ColumnSequenceList { get; set; } public List FormularList { get; set; } } public class AsposePageColumnSequence { public string ColumnName { get; set; } public List SequenceList { get; set; } } public class AsposeCellStyle { public int? RowIndex; public int? ColIndex; public Style cellStyle; public AsposeCellStyle(int aColIndex, int aRowIndex, Style aCellStyle) { this.RowIndex = aRowIndex; this.ColIndex = aColIndex; this.cellStyle = aCellStyle; } } public class AsposeExcelCellPosition { /// /// 列序号,从0开始 /// public int ColumnIndex { get; set; } /// /// 行序号,从0开始 /// public int RowIndex { get; set; } } public class AsposeExcelCellStyle : AsposeExcelCellPosition { public Func StyleFunc { get; set; } } }