Skip to main content
A newer version of this page is available. .

Legend.DockTarget Property

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

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v19.1.dll

Declaration

[NonTestableProperty]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public ChartElement DockTarget { get; set; }

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DockTarget property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also