Skip to main content

XtraChartsCollectionExtensions.Add(LegendCollection, Action<Legend>) Method

Adds a new legend configured using the specified method to the specified legends collection of a chart.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static void Add(
    this LegendCollection collection,
    Action<Legend> legendAction
)

Parameters

Name Type Description
collection LegendCollection

A collection of legends to which a new legend will be added.

legendAction Action<Legend>

A delegate method used to configure a Legend object.

Remarks

Note

This method is an extension method.

See Also