[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILegend.IncludeInLayout

IncludeInLayout Property

IncludeInLayout

Gets or sets whether the legend is included in the chart layout.

If this property is true, the legend occupies chart layout space when the chart layout is determined. The default value is true.

Declaration
bool IncludeInLayout { get; set; }
Property IncludeInLayout As Boolean
Examples
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
ILegend legend = chart.Legend;
legend.IncludeInLayout = false;
bool includeInLayout = legend.IncludeInLayout;