Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Column.cs
1using SkiaSharp;
2
4{
8 public enum ColumnAlignment
9 {
13 Left,
14
18 Center,
19
23 Right
24 }
25
29 public class Column
30 {
31 private readonly string columnId;
32 private readonly string header;
33 private readonly string dataSourceId;
34 private readonly string partition;
35 private readonly SKColor? fgColor;
36 private readonly SKColor? bgColor;
37 private readonly ColumnAlignment? alignment;
38 private readonly byte? nrDecimals;
39
51 public Column(string ColumnId, string Header, string DataSourceId, string Partition, SKColor? FgColor, SKColor? BgColor,
53 {
54 this.columnId = ColumnId;
55 this.header = Header;
56 this.dataSourceId = DataSourceId;
57 this.partition = Partition;
58 this.fgColor = FgColor;
59 this.bgColor = BgColor;
60 this.alignment = Alignment;
61 this.nrDecimals = NrDecimals;
62 }
63
67 public string ColumnId => this.columnId;
68
72 public string Header => this.header;
73
77 public string DataSourceId => this.dataSourceId;
78
82 public string Partition => this.partition;
83
87 public SKColor? FgColor => this.fgColor;
88
92 public SKColor? BgColor => this.bgColor;
93
97 public ColumnAlignment? Alignment => this.alignment;
98
102 public byte? NrDecimals => this.nrDecimals;
103 }
104}
Defines a column in a table.
Definition: Column.cs:30
SKColor? FgColor
Optional Foreground Color.
Definition: Column.cs:87
Column(string ColumnId, string Header, string DataSourceId, string Partition, SKColor? FgColor, SKColor? BgColor, ColumnAlignment? Alignment, byte? NrDecimals)
Defines a column in a table.
Definition: Column.cs:51
string Partition
Optional partition reference.
Definition: Column.cs:82
SKColor? BgColor
Optional Background Color.
Definition: Column.cs:92
string Header
Optional localized header.
Definition: Column.cs:72
string DataSourceId
Optional Data Suorce ID reference.
Definition: Column.cs:77
string ColumnId
Column ID
Definition: Column.cs:67
byte? NrDecimals
Optional Number of Decimals.
Definition: Column.cs:102
ColumnAlignment? Alignment
Optional Column Alignment.
Definition: Column.cs:97
ColumnAlignment
Column alignment.
Definition: Column.cs:9