[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IAxes.Count

Count Property

Count

Gets the number of IAxis objects in this collection.

Use this property to determine how many axes are available in the chart represented by this IAxes collection.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 100},
    {"Feb", 200}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 360, 230);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
int axisCount = shape.Chart.Axes.Count;