ChartAxisCollection
Contents
[
Hide
]ChartAxisCollection class
Represents a collection of chart axes.
public class ChartAxisCollection : IEnumerable<ChartAxis>
Properties
Name | Description |
---|---|
Count { get; } | Gets the number of axes in this collection. |
Item { get; } | Gets the axis at the specified index. |
Methods
Name | Description |
---|---|
GetEnumerator() | Returns an enumerator object. |
Examples
Shows how to work with axes collection.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertChart(ChartType.Column, 500, 300);
Chart chart = shape.Chart;
// Hide the major grid lines on the primary and secondary Y axes.
foreach (ChartAxis axis in chart.Axes)
{
if (axis.Type == ChartAxisType.Value)
axis.HasMajorGridlines = false;
}
doc.Save(ArtifactsDir + "Charts.AxisCollection.docx");
See Also
- class ChartAxis
- namespace Aspose.Words.Drawing.Charts
- assembly Aspose.Words