Class ChartDataBindAxisLabelModel
Binds ChartAxis to a data source, so as to provide labels for the axis.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartDataBindAxisLabelModel : ChartBaseDataBindList, IChartAxisLabelModel
Constructors
ChartDataBindAxisLabelModel()
Initializes a new instance of the ChartDataBindAxisLabelModel class.
Declaration
public ChartDataBindAxisLabelModel()
ChartDataBindAxisLabelModel(Object)
Initializes a new instance of the ChartDataBindAxisLabelModel class.
Declaration
public ChartDataBindAxisLabelModel(object dataSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataSource | The data source. |
ChartDataBindAxisLabelModel(Object, String)
Initializes a new instance of the ChartDataBindAxisLabelModel class.
Declaration
public ChartDataBindAxisLabelModel(object dataSource, string dataMember)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataSource | The data source. |
System.String | dataMember | The data member. |
ChartDataBindAxisLabelModel(Object, String, BindingContext)
Initializes a new instance of the ChartDataBindAxisLabelModel class.
Declaration
public ChartDataBindAxisLabelModel(object dataSource, string dataMember, BindingContext bindingContext)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataSource | The data source. |
System.String | dataMember | The data member. |
System.Windows.Forms.BindingContext | bindingContext | The binding context. |
Properties
LabelIndex
Gets or sets the index of the label.
Declaration
public int LabelIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the label. |
LabelName
Gets or sets the name of the label.
Declaration
public string LabelName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the label. |
LabelProperty
Gets or sets the label property.
Declaration
protected PropertyDescriptor LabelProperty { get; set; }
Property Value
Type | Description |
---|---|
System.ComponentModel.PropertyDescriptor | The label property. |
PositionIndex
Gets or sets the index of the position.
Declaration
public int PositionIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the position. |
PositionName
Gets or sets the name of the position.
Declaration
public string PositionName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the position. |
PositionProperty
Gets or sets the label property.
Declaration
protected PropertyDescriptor PositionProperty { get; set; }
Property Value
Type | Description |
---|---|
System.ComponentModel.PropertyDescriptor | The label property. |
Methods
GetLabelAt(Int32)
Returns the label at the specified index.
Declaration
public virtual ChartAxisLabel GetLabelAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index value to look for. |
Returns
Type | Description |
---|---|
ChartAxisLabel | ChartAxisLabel to be used as label. |
Reset()
Resets this instance.
Declaration
protected override void Reset()