-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cell.cs
71 lines (65 loc) · 1.96 KB
/
Cell.cs
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
using System.Collections.Generic;
using System.Text;
using XiaoFeng.Excel.Model;
/****************************************************************
* Copyright © (2022) www.fayelf.com All Rights Reserved. *
* Author : jacky *
* QQ : 7092734 *
* Email : [email protected] *
* Site : www.fayelf.com *
* Create Time : 2022-10-04 11:48:24 *
* Version : v 1.0.0 *
* CLR Version : 4.0.30319.42000 *
*****************************************************************/
namespace XiaoFeng.Excel
{
/// <summary>
/// 数据列
/// </summary>
public class Cell
{
#region 构造器
/// <summary>
/// 无参构造器
/// </summary>
public Cell()
{
}
/// <summary>
/// 设置数据
/// </summary>
/// <param name="value">值</param>
/// <param name="format">数值格式</param>
public Cell(string value, NumberFormat format = NumberFormat.General)
{
Value = new CellValue(value,format);
Format = format;
}
#endregion
#region 属性
/// <summary>
/// 值
/// </summary>
public CellValue Value { get; set; }
/// <summary>
/// 格式
/// </summary>
public NumberFormat Format { get; set; }
/// <summary>
/// 行
/// </summary>
public Row Row { get; set; }
/// <summary>
/// 列
/// </summary>
public Column Column { get; set; }
/// <summary>
/// 位置
/// </summary>
public CellLocation Location { get; set; }
#endregion
#region 方法
#endregion
}
}