Legend.Position Property
Returns or sets a [XlLegendPosition#SameCHM] value that represents the position of the legend on the chart.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property Position As XlLegendPosition
Get
Set
'Usage
Dim instance As Legend
Dim value As XlLegendPosition
value = instance.Position
instance.Position = value
XlLegendPosition Position { get; set; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.XlLegendPosition
Examples
This example moves the chart legend to the bottom of the chart.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
.Chart.Legend.Position= xlLegendPositionBottom
End If
End With