IMapItemFactory.CreateMapItem(MapItemType, Object) Method

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

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

Parameters

Name Type Description
type MapItemType

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

obj Object

A Object specifying the object.

Returns

Type Description
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