Table of Contents

TChartLegend Class

Description of the chart's legend box.

Syntax

Namespace: FlexCel.Core

public class TChartLegend: ICloneable

Constructors

Methods

Name Description
Clone Returns a deep copy of this object.

Properties

Name Description
Placement Placement of the legend inside of the chart. Note that newer Excel versions might report a non docked placement even if the legend is docked to a side. You need to check CanOverlapWithChart to see if the legend is docked, and then look at the side it is to see if it is docked to the left, top, etc.
CanOverlapWithChart If true, the chart can overlap the legend. Note that if Placement is different from TChartLegend​Placement.​Not​Docked then CanOverlapWithChart will be false. But even if not docked, this value can still be false as newer Excel versions allow you to specify this property on its own.
Frame Line and fill style options for the frame.
TextOptions Global font options for the legend labels.
Position Coordinates of the legend in percent (0 to 1) assuming no margins on the chart area.
If PositionZeroBased is not null, it must be used instead. Note that for setting options, this value is ignored and PositionZeroBased is used instead.
PositionZeroBased Coordinates of the legend in percent (0 to 1) assuming no margins on the chart area. If this value is null Position must be used instead.