com.aspose.words
Class ChartAxisCollection

java.lang.Object
    extended by com.aspose.words.ChartAxisCollection
All Implemented Interfaces:
java.lang.Iterable

public class ChartAxisCollection 
extends java.lang.Object

Represents a collection of chart axes.

Example:

Shows how to work with axes collection.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.insertChart(ChartType.COLUMN, 500.0, 300.0);
Chart chart = shape.getChart();

// Hide the major grid lines on the primary and secondary Y axes.
for (ChartAxis axis : chart.getAxes())
{
    if (axis.getType() == ChartAxisType.VALUE)
        axis.hasMajorGridlines(false);
}

doc.save(getArtifactsDir() + "Charts.AxisCollection.docx");

Property Getters/Setters Summary
intgetCount()
           Gets the number of axes in this collection.
ChartAxisget(int index)
           Gets the axis at the specified index.
 
Method Summary
java.util.Iterator<ChartAxis>iterator()
           Returns an enumerator object.
 

Property Getters/Setters Detail

getCount

public int getCount()
Gets the number of axes in this collection.

get

public ChartAxis get(int index)
Gets the axis at the specified index.

Method Detail

iterator

public java.util.Iterator<ChartAxisiterator()
Returns an enumerator object.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.