[]
Gets or sets the position of the legend on the chart.
LegendPosition Position { get; set; }
Property Position As LegendPosition
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 100},
{"Feb", 120}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"]);
ILegend legend = chart.Legend;
LegendPosition position = legend.Position;