[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IAxes

IAxes Interface

Represents a collection of IAxis objects in a chart.

Use this interface to access the axes that belong to a chart, retrieve a specific axis by its type, and iterate through the available axes.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IAxes : IEnumerable<IAxis>, IEnumerable
Public Interface IAxes
    Inherits IEnumerable(Of IAxis), IEnumerable
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 20},
    {"Mar", 15}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
IAxes axes = shape.Chart.Axes;
IAxis categoryAxis = axes.Item(AxisType.Category);

Properties

Name Description
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.

Parent

Gets the parent chart of this axes collection.

The returned IChart is the chart that owns these axes.

Methods

Name Description
Item(AxisType, AxisGroup)

Returns a single IAxis object from this IAxes collection.

Use this method to retrieve an axis by type from the primary axis group, or by both type and axis group when you need a secondary axis.