Version

Visible Property (LegendAppearance)

Gets/sets a Boolean which determins whether the Legend is displayed.
Syntax
'Declaration
 
Public Property Visible As Boolean
public bool Visible {get; set;}
Remarks

Setting the Visible flag to True causes the Legend box to be displayed at the Location side of the chart control area.

Changing this value at run-time can cause the Chart grid to expand to take up the portion of space within the control that was previous reserved by SpanPercentage for the Legend box. To overcome this side effect of hiding a Legend Box, developers may wish to use the Extent property of an adjacent Axis to reserve an amount of space equivalent to that reserved for the Legend were it visible. This is usually only possible if the Axis is not otherwise being used by the chart.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also