## Legend::GetPosition method


Gets or sets the legend position type.

```cpp
LegendPositionType Aspose::Cells::Charts::Legend::GetPosition()
```

## Remarks




Default position is right. 

If the legend is at left or right side of the chart, setting Legend.X property will not take effect. 

If the legend is at top or bottom side of the chart, setting Legend.Y property will not take effect. 
## See Also

* Enum [LegendPositionType](../../legendpositiontype/)
* Class [Legend](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
