Back to Devexpress

IMapItemFactory.CreateMapItem(MapItemType, Object) Method

windowsforms-devexpress-dot-xtramap-dot-imapitemfactory-dot-createmapitem-x28-devexpress-dot-xtramap-dot-mapitemtype-system-dot-object-x29.md

latest1.8 KB
Original Source

IMapItemFactory.CreateMapItem(MapItemType, Object) Method

If implemented by a class, creates a map item of the specified type.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
MapItem CreateMapItem(
    MapItemType type,
    object obj
)
vb
Function CreateMapItem(
    type As MapItemType,
    obj As Object
) As MapItem

Parameters

NameTypeDescription
typeMapItemType

A MapItemType enumeration value specifying the type of the created map item.

| | obj | Object |

A Object specifying the object.

|

Returns

TypeDescription
MapItem

A MapItem object which represents a map item of the specified type.

|

Remarks

Implement the CreateMapItem method to define a way of creating new map items using the IMapItemFactory.

See Also

IMapItemFactory Interface

IMapItemFactory Members

DevExpress.XtraMap Namespace