forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableStyle.cs
More file actions
57 lines (50 loc) · 1.38 KB
/
TableStyle.cs
File metadata and controls
57 lines (50 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
namespace System
{
/// <summary>
/// 表格显示样式
/// </summary>
public enum TableStyle
{
/// <summary>
/// 默认格式的表格
/// </summary>
Default = 0,
/// <summary>
/// Markdwon格式的表格
/// </summary>
MarkDown = 1,
/// <summary>
/// 交替格式的表格
/// </summary>
Alternative = 2,
/// <summary>
/// 最简格式的表格
/// </summary>
Minimal = 3
}
/// <summary>
/// 表格显示样式信息
/// 通过 Format 获取到的
/// </summary>
public class StyleInfo
{
public StyleInfo(string delimiterStr = "|", bool isShowTop_Down_DataBorder = true, string angleStr = "-")
{
DelimiterStr = delimiterStr;
IsShowTop_Down_DataBorder = isShowTop_Down_DataBorder;
AngleStr = angleStr;
}
/// <summary>
/// 每一列数据之间的间隔字符串
/// </summary>
public string DelimiterStr { get; set; }
/// <summary>
/// 是否显示顶部,底部,和每一行数据之间的横向边框
/// </summary>
public bool IsShowTop_Down_DataBorder { get; set; }
/// <summary>
/// 边角字符串
/// </summary>
public string AngleStr { get; set; }
}
}