2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / Legend Class / Orientation Property

In This Topic
    Orientation Property
    In This Topic
    Gets or sets the orientation of the legend entries.
    Syntax
    'Declaration
     
    Public Property Orientation As LegendOrientationEnum
    public LegendOrientationEnum Orientation {get; set;}
    Remarks

    The legend entries can be oriented in a vertical or horizontal fashion.

    Vertical orientation indicates that legend entries will stack vertically as the legend height permits. If the legend height cannot contain all of the entries and the legend is allowed to size itself, then additional columns of stacked entries will be added to the legend.

    Horizontal orientation indicates that legend entries will be created side by side as legend width permits. If the legend width cannot contain all of the entries and the legend is allowed to size itself, then additional rows of entries will be added to the legend.

    Auto orientation automatically selects an appropriate orientation based upon the legend Compass property. For east and west Compass values, Vertical orientation is used. For north and south Compass values, Horizontal orientation is used.

    See Also