A newer version of this page is available. Switch to the current version.

Legend.DockTarget Property

Specifies the element (chart or pane), to which the legend is docked.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[TypeConverter(typeof(LegendDockTargetTypeConverter))]
[NonTestableProperty]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public ChartElement DockTarget { get; set; }
<TypeConverter(GetType(LegendDockTargetTypeConverter))>
<NonTestableProperty>
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property DockTarget As ChartElement

Property Value

Type Description
ChartElement

A ChartElement class descendant representing the dock target for the legend.

Remarks

Use the DockTarget, Legend.AlignmentVertical and Legend.AlignmentHorizontal properties to position the legend relative to its dock target.

For more information, refer to Legends Alignment and Layout.

See Also