Skip to main content

IMapItemFactory.CreateMapItem(MapItemType, Object) Method

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v23.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

MapItem CreateMapItem(
    MapItemType type,
    object obj
)

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