A newer version of this page is available. Switch to the current version.

IMapItemFactory.CreateMapItem(MapItemType, Object) Method

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.1.dll


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


Name Type Description
type MapItemType

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

obj Object

A Object specifying the object.


Type Description

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


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

See Also