Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IMapItemFactory.CreateMapItem(MapItemType, Object) Method

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.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