Skip to main content
All docs
V24.2

LegendBase.HorizontalIndent Property

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

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v24.2.dll

Declaration

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

Property Value

Type Description
Int32

The horizontal 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