Skip to main content

MapEditor.CopyItems(IEnumerable<MapItem>, VectorItemsLayer) Method

Copies the specified map items to the target layer.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

public MapItem[] CopyItems(
    IEnumerable<MapItem> items,
    VectorItemsLayer targetLayer
)

Parameters

Name Type Description
items IEnumerable<MapItem>

The map items to be copied.

targetLayer VectorItemsLayer

The layer that stores copied items.

Returns

Type Description
MapItem[]

An array of MapItem class descendant objects that specify the copied items.

Remarks

Note that items are copied to MapEditor.ActiveLayer‘s storage if the targetLayer parameter is null (Nothing in Visual Basic).

See Also