Skip to main content
All docs
V24.2

LegendBase.TextOffset Property

Gets or sets the distance between a legend item’s marker and description in pixels.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v24.2.dll

Declaration

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

Property Value

Type Description
Int32

Specifies the gap between a legend item’s marker and description 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