[]
Gets or sets the position of the data labels.
Use this property to determine how the data labels in the series are positioned relative to their chart elements.
DataLabelPosition Position { get; set; }
Property Position As DataLabelPosition
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"]);
IDataLabels dataLabels = chart.SeriesCollection[0].DataLabels;
dataLabels.Position = DataLabelPosition.OutsideEnd;
DataLabelPosition position = dataLabels.Position;