[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILegend.Position

Position Property

Position

Gets or sets the position of the legend on the chart.

Declaration
LegendPosition Position { get; set; }
Property Position As LegendPosition
Examples
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;