ChartDataColumn<T>
public sealed class ChartDataColumn<T> : ChartDataColumnImmutable typed values with an optional validity bitmap for missing data.
Constructors
Section titled “Constructors”
ChartDataColumn(string, IEnumerable, ChartColumnType?)
Section titled “ChartDataColumn(string, IEnumerable, ChartColumnType?)”public ChartDataColumn(string name, IEnumerable<T> values, ChartColumnType? type = null)Copies the sequence into an immutable column, inferring the semantic type when omitted; a null sequence creates an empty column.
Parameters
| Name | Type |
|---|---|
name |
System.String |
values |
System.Collections.Generic.IEnumerable{{T}} |
type |
System.Nullable{ChartGuru.ChartColumnType} |
ChartDataColumn(string, T[], bool[], ChartColumnType?)
Section titled “ChartDataColumn(string, T[], bool[], ChartColumnType?)”public ChartDataColumn(string name, T[] values, bool[] validity = null, ChartColumnType? type = null)Copies values and the optional matching validity bitmap, inferring the semantic type when omitted.
Parameters
| Name | Type |
|---|---|
name |
System.String |
values |
{T}[] |
validity |
System.Boolean[] |
type |
System.Nullable{ChartGuru.ChartColumnType} |
Methods
Section titled “Methods”
TryGetValue(int, out T)
Section titled “TryGetValue(int, out T)”public bool TryGetValue(int rowIndex, out T value)Returns a valid typed value, or false when the row is out of range or marked missing.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
value |
{T} |
Returns
System.Boolean
IsValid(int)
Section titled “IsValid(int)”public override bool IsValid(int rowIndex)Reports the validity flag, treating all in-range rows as valid when no bitmap is supplied.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
Returns
System.Boolean
GetValue(int)
Section titled “GetValue(int)”public override object GetValue(int rowIndex)Returns the boxed row value, or null when the row’s validity flag is false.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
Returns
System.Object
TryGetDouble(int, out double)
Section titled “TryGetDouble(int, out double)”public override bool TryGetDouble(int rowIndex, out double value)Reads a valid numeric row as a finite double, returning false for missing, nonnumeric or nonfinite values.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
value |
System.Double |
Returns
System.Boolean
Properties
Section titled “Properties”
ValueType
Section titled “ValueType”public override Type ValueType { get; }Returns
System.Type
public override int Count { get; }Returns
System.Int32
Values
Section titled “Values”public IReadOnlyList<T> Values { get; }Returns
System.Collections.Generic.IReadOnlyList{{T}}
this[int]
Section titled “this[int]”public T this[int rowIndex] { get; }Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
Returns
{T}