Skip to main content
All docs
V25.1
  • LegendBaseModel.Direction Property

    Namespace: DevExpress.XtraCharts.Designer

    Assembly: DevExpress.XtraCharts.v25.1.Wizard.dll

    NuGet Package: DevExpress.Win.Charts

    Declaration

    [PropertyForOptions("Layout")]
    [LocalizableCategory(DesignerCategories.Behavior)]
    public LegendDirection Direction { get; set; }

    Property Value

    Type
    LegendDirection

    Available values:

    Name Description
    TopToBottom

    Specifies that legend entries are positioned vertically from the top to the bottom of the legend according to the indexes of the corresponding series within the ChartControl.Series collection. The lower the index that a series object has in the ChartControl.Series collection, the higher position its legend entry has within the legend.

    BottomToTop

    Specifies that legend entries are positioned vertically from the bottom to the top of the legend according to the indexes of the corresponding series within the ChartControl.Series collection. The lower index that a series object has in the ChartControl.Series collection, the lower position its legend entry has within the legend.

    LeftToRight

    Specifies that legend entries are positioned horizontally from the left to the right of the legend according to the indexes of the corresponding series within the ChartControl.Series collection. The lower index that a series object has in the ChartControl.Series collection, the closer to the left bound its legend entry is positioned within the legend.

    RightToLeft

    Specifies that legend entries are positioned horizontally from the right to the left of the legend according to the indexes of the corresponding series within the ChartControl.Series collection. The lower index a series object has in the ChartControl.Series collection, the closer to the right bound its legend entry is positioned within the legend.

    See Also