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

Copies the specified map items to the target layer.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

public MapItem[] CopyItems(
    IEnumerable<MapItem> items,
    VectorItemsLayer targetLayer
)
Public Function CopyItems(
    items As IEnumerable(Of MapItem),
    targetLayer As VectorItemsLayer
) As MapItem()

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