Skip to main content

LegendCollection.Add(Legend) Method

Appends the specified Legend object to the current collection.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v26.1.dll

NuGet Package: DevExpress.Charts

Declaration

public int Add(
    Legend legend
)

Parameters

Name Type Description
legend Legend

A Legend object to append to the collection.

Returns

Type Description
Int32

An integer value indicating the position at which the new element was inserted.

Remarks

This method adds a Legend object to the end of the collection.

See Also