ChartDataColumn
public abstract class ChartDataColumnImmutable, typed column in a ChartGuru.ChartDataFrame.
Constructors
Section titled “Constructors”
ChartDataColumn(string, ChartColumnType)
Section titled “ChartDataColumn(string, ChartColumnType)”protected ChartDataColumn(string name, ChartColumnType type)Initializes the column name and semantic type, rejecting an empty or whitespace name.
Parameters
| Name | Type |
|---|---|
name |
System.String |
type |
ChartGuru.ChartColumnType |
Methods
Section titled “Methods”
IsValid(int)
Section titled “IsValid(int)”public abstract bool IsValid(int rowIndex)Reports whether the specified row contains a valid value.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
Returns
System.Boolean
GetValue(int)
Section titled “GetValue(int)”public abstract object GetValue(int rowIndex)Gets the row value as an object according to the column’s validity contract.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
Returns
System.Object
GetDisplayValue(int, IFormatProvider)
Section titled “GetDisplayValue(int, IFormatProvider)”public virtual string GetDisplayValue(int rowIndex, IFormatProvider formatProvider = null)Formats valid values, defaulting formattable values to invariant culture; missing data returns empty text.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
formatProvider |
System.IFormatProvider |
Returns
System.String
TryGetDouble(int, out double)
Section titled “TryGetDouble(int, out double)”public virtual bool TryGetDouble(int rowIndex, out double value)Attempts an invariant-culture conversion of a valid row value to a finite double.
Parameters
| Name | Type |
|---|---|
rowIndex |
System.Int32 |
value |
System.Double |
Returns
System.Boolean
Properties
Section titled “Properties”
public string Name { get; }Returns
System.String
public ChartColumnType Type { get; }Returns
ChartGuru.ChartColumnType
ValueType
Section titled “ValueType”public abstract Type ValueType { get; }Returns
System.Type
public abstract int Count { get; }Returns
System.Int32