Back to Devexpress

MapLineEndCapWidthMapping Class

windowsforms-devexpress-dot-xtramap-276740b9.md

latest2.7 KB
Original Source

MapLineEndCapWidthMapping Class

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

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class MapLineEndCapWidthMapping :
    MapShapePropertyMappingBase
vb
Public Class MapLineEndCapWidthMapping
    Inherits MapShapePropertyMappingBase

Example

The following example specifies end cap settings for map lines created based on data source values:

csharp
listSourceDataAdapter1.PropertyMappings.Add(new MapLineEndCapVisibleMapping() { DefaultValue = true });
listSourceDataAdapter1.PropertyMappings.Add(new MapLineEndCapLengthMapping() { DefaultValue = 12 });            
listSourceDataAdapter1.PropertyMappings.Add(new MapLineEndCapWidthMapping() { DefaultValue = 6 });
vb
listSourceDataAdapter1.PropertyMappings.Add(New MapLineEndCapVisibleMapping() With {
        .DefaultValue = True
    })
listSourceDataAdapter1.PropertyMappings.Add(New MapLineEndCapLengthMapping() With {
        .DefaultValue = 12
    })
listSourceDataAdapter1.PropertyMappings.Add(New MapLineEndCapWidthMapping() With {
        .DefaultValue = 6
    })

Run Demo: Map Arrows

Inheritance

Object DevExpress.XtraMap.Native.MapItemMappingBase MapItemPropertyMappingBase DevExpress.XtraMap.MapItemPropertyMappingBase<MapShape> MapShapePropertyMappingBase MapLineEndCapWidthMapping

See Also

MapLineEndCapWidthMapping Members

MapLineEndCapIsFilledMapping

MapLineEndCapLengthMapping

MapLineEndCapTemplateMapping

MapLineEndCapVisibleMapping

DevExpress.XtraMap Namespace