java.lang.Object
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 |
int | getCount() | |
|
Gets the number of axes in this collection.
|
ChartAxis | get(int index) | |
|
Gets the axis at the specified index.
|
|
Property Getters/Setters Detail |
getCount | |
public int getCount()
|
-
Gets the number of axes in this collection.
-
Gets the axis at the specified index.
iterator | |
public java.util.Iterator<ChartAxis> iterator() |
-
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.