windowsforms-devexpress-dot-xtramap-dot-mapdataadapterbase-dot-setmapitemfactory-x28-devexpress-dot-xtramap-dot-imapitemfactory-x29.md
Sets the factory used to generate map items.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public void SetMapItemFactory(
IMapItemFactory factory
)
Public Sub SetMapItemFactory(
factory As IMapItemFactory
)
| Name | Type | Description |
|---|---|---|
| factory | IMapItemFactory |
An object implementing the IMapItemFactory interface.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetMapItemFactory(IMapItemFactory) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
how-to-colorize-pushpin-items-based-on-data-source-data-t423869/CS/ColorPushpinFactory/Form1.cs#L17
PopulateTable(10);
listSourceDataAdapter1.SetMapItemFactory(new PushpinFactory((Image)ColorPushpinFactory.Properties.Resources.ResourceManager.GetObject("pushpin_red"), Color.FromArgb(254, 22, 131)));
}
how-to-colorize-pushpin-items-based-on-data-source-data-t423869/VB/ColorPushpinFactory/Form1.vb#L19
PopulateTable(10)
listSourceDataAdapter1.SetMapItemFactory(New PushpinFactory(CType(My.Resources.ResourceManager.GetObject("pushpin_red"), Image), Color.FromArgb(254, 22, 131)))
End Sub
See Also