menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class CategoryAxisDataBindModel

    Inheritance
    System.Object
    CategoryAxisDataBindModel
    Implements
    IChartSeriesCategory
    IChartSeriesModel
    IUpdateModel
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class CategoryAxisDataBindModel : IChartSeriesCategory, IChartSeriesModel, IUpdateModel

    Constructors

    CategoryAxisDataBindModel()

    Returns a data bind model without any data source. Data source can be explicitly provided using DataSource property.

    Declaration
    public CategoryAxisDataBindModel()

    CategoryAxisDataBindModel(Object)

    Returns a data bind model with data source.

    Declaration
    public CategoryAxisDataBindModel(object dataSource)
    Parameters
    Type Name Description
    System.Object dataSource

    CategoryAxisDataBindModel(Object, String)

    Returns a data bind model with data source and data member.

    Declaration
    public CategoryAxisDataBindModel(object dataSource, string dataMember)
    Parameters
    Type Name Description
    System.Object dataSource

    Data source to bind with Chart

    System.String dataMember

    Data member to identify data table, if data set is used as data source

    CategoryAxisDataBindModel(Object, String, BindingContext)

    Returns a data bind model with data source and data member, context.

    Declaration
    public CategoryAxisDataBindModel(object dataSource, string dataMember, BindingContext context)
    Parameters
    Type Name Description
    System.Object dataSource

    Data source to bind with Chart

    System.String dataMember

    Data member to identify data table, if data set is used as data source

    System.Windows.Forms.BindingContext context

    Binding context to bind data

    Properties

    CategoryName

    Gets or sets the field name for binding categorical (X) values with Chart.

    Declaration
    public string CategoryName { get; set; }
    Property Value
    Type
    System.String

    Count

    Gets the count of data in data source.

    Declaration
    public int Count { get; }
    Property Value
    Type
    System.Int32

    DataMember

    Data member for data source. If data set is used as data source, data table name should be provided as value to this field.

    Declaration
    public string DataMember { get; set; }
    Property Value
    Type
    System.String

    DataSource

    Datasource to bind with chart.

    Declaration
    public object DataSource { get; set; }
    Property Value
    Type
    System.Object

    YNames

    Gets or sets the field names for Y values of Chart. This is an array property because HiLo, HiLoOpenClose, Candle, etc.., type requires more than one Y value.

    Declaration
    public string[] YNames { get; set; }
    Property Value
    Type
    System.String[]

    Methods

    GetCategory(Int32)

    Gets the categorical value of a data point at specified index.

    Declaration
    public string GetCategory(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex

    Index of the data point

    Returns
    Type Description
    System.String

    Retruns the categorical value at specified index.

    GetEmpty(Int32)

    Checks whether data point at an index is empty or not.

    Declaration
    public bool GetEmpty(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex

    Index of the data point

    Returns
    Type Description
    System.Boolean

    Retruns true if data point at specified index is an empty point.

    GetX(Int32)

    Gets the X value of a data point at specified index.

    Declaration
    public double GetX(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Double

    Retruns X value of data point at specified index.

    GetY(Int32)

    Gets the Y value of a data point at specified index.

    Declaration
    public double[] GetY(int xIndex)
    Parameters
    Type Name Description
    System.Int32 xIndex

    Index of the data point

    Returns
    Type Description
    System.Double[]

    Retruns the Y value array at specified index.

    UpdateDataSource(Object)

    Method to update the data source of ChartDataBindModel.

    Declaration
    public void UpdateDataSource(object dataSource)
    Parameters
    Type Name Description
    System.Object dataSource

    Events

    Changed

    Event that should be raised by any implementation of this interface if data that it holds changes. This will cause the chart to be updated accordingly.

    Declaration
    public event ListChangedEventHandler Changed
    Event Type
    Type
    System.ComponentModel.ListChangedEventHandler

    Implements

    IChartSeriesCategory
    IChartSeriesModel
    IUpdateModel
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved