Skip to content

ChartTabularRow

StructChartGuruChartGuru
public readonly struct ChartTabularRow

Read-only view of a single row in a ChartGuru.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

Name Type
table ChartGuru.ChartTabularData
row System.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

Name Type
col System.Int32
fallback System.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

Name Type
columnName System.String
fallback System.Single

Returns

System.Single

public int RowIndex { get; }

Returns

System.Int32

public string this[int col] { get; }

Parameters

Name Type
col System.Int32

Returns

System.String

public string this[string columnName] { get; }

Parameters

Name Type
columnName System.String

Returns

System.String