Skip to main content

LegendItemCreatingEventArgs(MapLegendBase, Int32, MapLegendItemBase) Constructor

Initializes a new instance of the LegendItemCreatingEventArgs class with the predefined color.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

public LegendItemCreatingEventArgs(
    MapLegendBase legend,
    int index,
    MapLegendItemBase item
)

Parameters

Name Type Description
legend MapLegendBase

A MapLegendBase class descendant specifying the owner of the legend item. This object is assigned to the LegendItemCreatingEventArgs.Legend property.

index Int32

An integer value specifying the index of the created legend item. This value is assigned to the LegendItemCreatingEventArgs.Index property.

item MapLegendItemBase

A MapLegendItemBase class descendant specifying the created legend item. This object is assigned to the LegendItemCreatingEventArgs.Item property.

Remarks

Instances of the LegendItemCreatingEventArgs class are automatically created, initialized and passed to the corresponding event handlers.

See Also