Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Copies the specified map items to the target layer.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.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