Skip to main content
All docs
V25.1
  • LegendBase.VerticalIndent Property

    Gets or sets the vertical indent between legend items in pixels.

    Namespace: DevExpress.XtraTreeMap

    Assembly: DevExpress.XtraTreeMap.v25.1.dll

    NuGet Package: DevExpress.TreeMap

    Declaration

    [XtraSerializableProperty]
    public int VerticalIndent { get; set; }

    Property Value

    Type Description
    Int32

    The vertical indent in pixels.

    Remarks

    The following image shows indents between legend items:

    Treemap legend indents

    The following code configures indents between treemap legend items:

    using DevExpress.XtraTreeMap;
    //...
        ColorListLegend legend = new ColorListLegend();
    
        legend.Direction = LegendDirection.LeftToRight;
        legend.HorizontalAlignment = LegendHorizontalAlignment.Center;
        legend.VerticalAlignment = LegendVerticalAlignment.BottomOutside;
    
        legend.HorizontalIndent = 40;
        legend.VerticalIndent = 20;
        legend.TextOffset = 20;
    
        legend.EquallySpacedItems = true;
    
        treeMapControl1.Legend = legend;
    
    See Also