[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IAxis.Crosses

Crosses Property

Crosses

Gets or sets the point on the specified axis where the other axis crosses.

Returns the current axis crossing mode, such as Automatic, Custom, Maximum, or Minimum. If the crossing mode is Custom, use CrossesAt to get the exact crossing position.

Declaration
AxisCrosses Crosses { get; set; }
Property Crosses As AxisCrosses
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 12},
    {"Feb", 18},
    {"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IAxis axis = chart.Axes.Item(AxisType.Category, AxisGroup.Primary);
axis.Crosses = AxisCrosses.Maximum;
AxisCrosses crosses = axis.Crosses;