using System;
using System.Collections.Generic;
using System.Text;
namespace HTEXLib
{
public class Table : Item
{
public TbStyle style { get; set; }
public Table() {
tr = new List
();
}
//内容排版方向 左书写 右书写
// public Border Border { get; set; }
// public Fill Fill { get; set; }
public List
tr { get; set; }
}
public class Tr {
public Tr()
{
td = new List();
}
// public Fill fill { get; set; }
public double height { get; set; }
public List | td { get; set; }
//public List borders { get; set; }
}
public class Td
{
public double width { get; set; }
// public Fill fill { get; set; }
public CellStyle style { get; set; }
public int? rowspan { get; set; }
public int? colspan { get; set; }
public bool vmerge { get; set; }
public bool hmerge { get; set; }
public TextBody textBody { get; set; }
}
public class TbStyle {
public Position position { get; set; }
public Boolean rightToLeft { get; set; }
public Boolean firstRow { get; set; }
public Boolean firstColumn { get; set; }
public Boolean lastRow { get; set; }
public Boolean lastColumn { get; set; }
public Boolean bandRow { get; set; }
public Boolean bandColumn { get; set; }
public List columnWidth { get; set; }
public List cellStyles { get; set; }
public Fill fill { get; set; }
}
public class CellStyle {
///
/// 单元格边框样式
///
public List cellBorders { get; set; }
///
/// 单元格填充样式
///
public Fill fill { get; set; }
///
/// 单元格字体样式
///
public FontStyle fontStyle { get; set; }
public string type { get; set; }
}
///
///可以被叠加
///
public class CellBorder {
///
/// Left 左边框 Right 右边框 Bottom 下边框 上边框 Top InHor 内部横线框 InVer 内部竖线框 Tl2br 从左上到右下斜线 Tr2bl 从右上到左下斜线
///
public string type { get; set; }
public Border border { get; set; }
///
/// 左边框
///
// public Border Left { get; set; }
///
/// 右边框
///
// public Border Right { get; set; }
///
/// 下边框
///
// public Border Bottom { get; set; }
///
/// 上边框
///
// public Border Top { get; set; }
///
/// 内部水平方向 内部横线框
///
// public Border InHor { get; set; }
///
/// 内部垂直方向 内部竖线框
///
// public Border InVer { get; set; }
///
/// 左上到下右边框 从左上到右下斜线
///
// public Border Tl2br { get; set; }
///
/// 右上到下左边的框 从右上到左下斜线
///
// public Border Tr2bl { get; set; }
}
}
|