Skip to content

ChartTabularRow

StructChartGuruChartGuru
public readonly struct ChartTabularRow

Read-only view of a single row in a ChartTabularData.

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

NameType
tableChartGuru.ChartTabularData
rowSystem.Int32

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

NameType
colSystem.Int32
fallbackSystem.Single

Returns

System.Single

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

NameType
columnNameSystem.String
fallbackSystem.Single

Returns

System.Single

public int RowIndex { get; }

Returns

System.Int32

public string this[int col] { get; }

Parameters

NameType
colSystem.Int32

Returns

System.String

public string this[string columnName] { get; }

Parameters

NameType
columnNameSystem.String

Returns

System.String