ChartTabularRow
public readonly struct ChartTabularRowRead-only view of a single row in a ChartGuru.ChartTabularData.
Constructors
Section titled “Constructors”
ChartTabularRow(ChartTabularData, int)
Section titled “ChartTabularRow(ChartTabularData, int)”public ChartTabularRow(ChartTabularData table, int row)Creates a zero-copy view of one row in the supplied table. Bounds are handled by the table’s cell accessors.
Parameters
| Name | Type |
|---|---|
table |
ChartGuru.ChartTabularData |
row |
System.Int32 |
Methods
Section titled “Methods”
GetFloat(int, float)
Section titled “GetFloat(int, float)”public float GetFloat(int col, float fallback = 0)Reads the indexed cell as an invariant-culture number, returning the fallback when it is missing or invalid.
Parameters
| Name | Type |
|---|---|
col |
System.Int32 |
fallback |
System.Single |
Returns
System.Single
GetFloat(string, float)
Section titled “GetFloat(string, float)”public float GetFloat(string columnName, float fallback = 0)Reads a named cell as an invariant-culture number, returning the fallback when the column or value is invalid.
Parameters
| Name | Type |
|---|---|
columnName |
System.String |
fallback |
System.Single |
Returns
System.Single
Properties
Section titled “Properties”
RowIndex
Section titled “RowIndex”public int RowIndex { get; }Returns
System.Int32
this[int]
Section titled “this[int]”public string this[int col] { get; }Parameters
| Name | Type |
|---|---|
col |
System.Int32 |
Returns
System.String
this[string]
Section titled “this[string]”public string this[string columnName] { get; }Parameters
| Name | Type |
|---|---|
columnName |
System.String |
Returns
System.String