[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDisplayUnitLabel.Parent

Parent Property

Parent

Gets the parent axis of this display unit label.

The returned IAxis object represents the axis that owns this display unit label.

Declaration
IAxis Parent { get; }
ReadOnly Property Parent As IAxis
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 1200},
    {"Feb", 2400}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, worksheet.Range["A1:B3"]).Chart;
IAxis axis = chart.Axes.Item(AxisType.Value, AxisGroup.Primary);
axis.DisplayUnit = DisplayUnit.Thousands;
IDisplayUnitLabel displayUnitLabel = axis.DisplayUnitLabel;
IAxis parentAxis = displayUnitLabel.Parent;