LegendBase.VerticalIndent Property
Gets or sets the vertical indent between legend items in pixels.
Namespace: DevExpress.XtraTreeMap
Assembly: DevExpress.XtraTreeMap.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Int32 | The vertical indent in pixels. |
Remarks
The following image shows indents between legend items:
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