Back to Devexpress

MapEditor.CreateItem(MapItemSettingsBase, Point) Method

wpf-devexpress-dot-xpf-dot-map-dot-mapeditor-dot-createitem-x28-devexpress-dot-xpf-dot-map-dot-mapitemsettingsbase-system-dot-windows-dot-point-x29.md

latest1.6 KB
Original Source

MapEditor.CreateItem(MapItemSettingsBase, Point) Method

Creates an item with the specified settings at the specified point.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public MapItem CreateItem(
    MapItemSettingsBase itemSettings,
    Point screenPoint
)
vb
Public Function CreateItem(
    itemSettings As MapItemSettingsBase,
    screenPoint As Point
) As MapItem

Parameters

NameTypeDescription
itemSettingsMapItemSettingsBase

Settings of the new map item.

| | screenPoint | Point |

Point at which the Editor should create the new item.

|

Returns

TypeDescription
MapItem

The newly created map item.

|

Remarks

Important

The settings type specifies the newly created item’s type.

See Also

MapEditor Class

MapEditor Members

DevExpress.Xpf.Map Namespace