Skip to content

ChartDataTableColumn

ClassChartGuruChartGuru
public sealed class ChartDataTableColumn

One typed column of a ChartDataTable; cells are kept as invariant text.

public ChartDataTableColumn()

ChartDataTableColumn(string, ChartColumnType, IEnumerable)

Section titled “ChartDataTableColumn(string, ChartColumnType, IEnumerable)”
public ChartDataTableColumn(string name, ChartColumnType type, IEnumerable<string> values = null)

Creates a typed column with its initial invariant-text cells; a null name or cell collection creates an empty one.

Parameters

Name Type
name System.String
type ChartGuru.ChartColumnType
values System.Collections.Generic.IEnumerable{System.String}

public string GetCell(int row)

Returns the cell text, or an empty string past the end of the column.

Parameters

Name Type
row System.Int32

Returns

System.String

public void SetCell(int row, string value)

Writes a cell, growing the column when needed.

Parameters

Name Type
row System.Int32
value System.String
public ChartDataTableColumn Clone()

Returns a deep copy.

Returns

ChartGuru.ChartDataTableColumn

public string Name { get; set; }

Returns

System.String

public ChartColumnType Type { get; set; }

Returns

ChartGuru.ChartColumnType

public IReadOnlyList<string> Values { get; }

Returns

System.Collections.Generic.IReadOnlyList{System.String}