Version

LegendPosition Enumeration

Constants which determine the placement of the chart's Legend.
Syntax
'Declaration
 
Public Enum LegendPosition 
   Inherits System.Enum
public enum LegendPosition : System.Enum 
Members
MemberDescription
BottomThe legend appears at the bottom of the chart.
BottomLeftThe legend appears near the bottom left corner of the chart. Supported only for Histogram, Pareto, Treemap, Sunburst, Box and Whisker, and Waterfall chart types.
BottomRightThe legend appears near the bottom right corner of the chart. Supported only for Histogram, Pareto, Treemap, Sunburst, Box and Whisker, and Waterfall chart types.
CustomThe legend's size and location is determined by the Legend.Left, Legend.Top, Legend.Width, and Legend.Height properties.
DefaultThe legend position is determined automatically by Excel.
LeftThe legend appears near the left edge of the chart.
RightThe legend appears near the right edge of the chart.
TopThe legend appears at the top of the chart.
TopLeftThe legend appears near the top left corner of the chart. Supported only for Histogram, Pareto, Treemap, Sunburst, Box and Whisker, and Waterfall chart types.
TopRightThe legend appears near the top right corner of 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