[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITickLabels.Offset

Offset Property

Offset

Gets or sets the distance between label levels and between the first label level and the axis line.

Use this property to read the current spacing applied to tick-mark labels on a chart axis.

Declaration
int Offset { get; set; }
Property Offset As Integer
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 120},
    {"Feb", 150},
    {"Mar", 110}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, worksheet.Range["A1:B4"]);
IAxis axis = shape.Chart.Axes.Item(AxisType.Category);
int offset = axis.TickLabels.Offset;