Back to Devexpress

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

windowsforms-devexpress-dot-xtramap-dot-mapeditor-dot-copyitems-x28-system-dot-collections-dot-generic-dot-ienumerable-devexpress-dot-xtramap-dot-mapitem-devexpress-dot-xtramap-dot-vectoritemslayer-x29.md

latest2.0 KB
Original Source

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

Copies the specified map items to the target layer.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

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

Parameters

NameTypeDescription
itemsIEnumerable<MapItem>

The map items to be copied.

| | targetLayer | VectorItemsLayer |

The layer that stores copied items.

|

Returns

TypeDescription
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

MapEditor Class

MapEditor Members

DevExpress.XtraMap Namespace