Skip to main content
All docs
V24.1

MapLineEndCapTemplateMapping Class

Defines the Template property for the end cap when map line settings are loaded from a data source.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

public class MapLineEndCapTemplateMapping :
    MapShapePropertyMappingBase

Remarks

The following example defines a custom arrow template:

image

listSourceDataAdapter1.PropertyMappings.Add(new MapLineEndCapVisibleMapping() { DefaultValue = true });
listSourceDataAdapter1.PropertyMappings.Add(new MapLineEndCapLengthMapping() { DefaultValue = 12 });
listSourceDataAdapter1.PropertyMappings.Add(new MapLineEndCapWidthMapping() { DefaultValue = 15 });
MapLineEndCapTemplateMapping templateMapping = new MapLineEndCapTemplateMapping();
templateMapping.DefaultValue = new MapUnit[] {
                new MapUnit(-0.2, 0),
                new MapUnit(-0.5, -0.5),
                new MapUnit(0.25, 0),
                new MapUnit(-0.5, 0.5),
                new MapUnit(-0.2, 0),
};
listSourceDataAdapter1.PropertyMappings.Add(templateMapping);

For more examples on MapLine property mappings, see the demo:

Run Demo: Map Arrows

Inheritance

Object
DevExpress.XtraMap.Native.MapItemMappingBase
MapItemPropertyMappingBase
DevExpress.XtraMap.MapItemPropertyMappingBase<MapShape>
MapShapePropertyMappingBase
MapLineEndCapTemplateMapping
See Also