blob: 822673e6fd13b497bae0b2921cb85fa029c228c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
namespace RhSolutions.ExcelExtensions;
public sealed class TableCell : Table
{
public Row ParentRow
{
get => ParentTable.Rows[ParentTable.Range.Row - Range.Row];
}
public Column ParentColumn
{
get => ParentTable.Columns[ParentTable.Range.Column - Range.Column];
}
public object Value
{
get => Range.Cells[1, 1].Value2;
set => Range.Cells[1, 1].Value2 = value;
}
public TableCell(Range range, Table table) : base(range, table)
{
Range = range;
ParentTable = table;
}
}
|