Class ChartDataBindModel
The default implementation of the IChartSeriesModel.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartDataBindModel : ChartBaseDataBindList, IChartSeriesModel, IChartSeriesIndexedModel, IUpdateModelConstructors
ChartDataBindModel()
Initializes a new instance of the ChartDataBindModel class.
Declaration
public ChartDataBindModel()ChartDataBindModel(Object)
Initializes a new instance of the ChartDataBindModel class.
Declaration
public ChartDataBindModel(object dataSource)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | dataSource | The data source. | 
ChartDataBindModel(Object, String)
Initializes a new instance of the ChartDataBindModel class.
Declaration
public ChartDataBindModel(object dataSource, string dataMember)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | dataSource | The data source that is to be used. | 
| System.String | dataMember | The data member that holds the label. | 
ChartDataBindModel(Object, String, BindingContext)
Initializes a new instance of the ChartDataBindModel class.
Declaration
public ChartDataBindModel(object dataSource, string dataMember, BindingContext bindingContext)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | dataSource | The data source that is to be used. | 
| System.String | dataMember | The data member that holds the label. | 
| System.Windows.Forms.BindingContext | bindingContext | The BindingContext. Set this to be the Form's (hosting the ChartControl) BindingContext. | 
Properties
XIndex
Binds this field to the X Axis
Declaration
public int XIndex { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | The index of the X. | 
XName
Binds this field to the X Axis.
Declaration
public string XName { get; set; }Property Value
| Type | 
|---|
| System.String | 
XProperty
Gets or sets the X property.
Declaration
protected PropertyDescriptor XProperty { get; set; }Property Value
| Type | Description | 
|---|---|
| System.ComponentModel.PropertyDescriptor | The X property. | 
YIndexes
Binds this fields to the Y Axis
Declaration
public int[] YIndexes { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32[] | The Y indexes. | 
YNames
Binds this fields to the Y Axis
Declaration
public string[] YNames { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String[] | The Y names. | 
YProperties
Gets or sets the X property.
Declaration
protected PropertyDescriptor[] YProperties { get; set; }Property Value
| Type | Description | 
|---|---|
| System.ComponentModel.PropertyDescriptor[] | The X property. | 
Methods
GetEmpty(Int32)
Implements IChartSeriesModel.GetEmpty
Declaration
public bool GetEmpty(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | 
Returns
| Type | 
|---|
| System.Boolean | 
GetX(Int32)
Implements IChartSeriesModel.GetX
Declaration
public double GetX(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | 
Returns
| Type | 
|---|
| System.Double | 
GetY(Int32)
Implements IChartSeriesModel.GetY
Declaration
public double[] GetY(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | 
Returns
| Type | 
|---|
| System.Double[] | 
OnListChanged(Object, ListChangedEventArgs)
Called when list is changed.
Declaration
protected override void OnListChanged(object sender, ListChangedEventArgs args)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | sender | The sender. | 
| System.ComponentModel.ListChangedEventArgs | args | The System.ComponentModel.ListChangedEventArgs instance containing the event data. | 
Overrides
RaiseChangedEvent(ListChangedEventArgs)
Raise the Changed event.
Declaration
public void RaiseChangedEvent(ListChangedEventArgs ea)Parameters
| Type | Name | Description | 
|---|---|---|
| System.ComponentModel.ListChangedEventArgs | ea | The ItemChanged event data | 
Reset()
Resets this instance.
Declaration
protected override void Reset()Overrides
SetEmpty(Int32, Boolean)
Implements SetEmpty
Declaration
public void SetEmpty(int xIndex, bool isEmpty)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | xIndex | |
| System.Boolean | isEmpty | 
UpdateDataSource(Object)
Update the existing data source with new one
Declaration
public void UpdateDataSource(object dataSource)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | dataSource | New data source |