MapLineStartCapTemplateMapping.DefaultValue Property
Specifies the default Template property value for the start 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
Property Value
Type | Default | Description |
---|---|---|
MapUnit[] | null | The default Template property value for the map line start cap. |
Remarks
The following example defines a custom arrow template:
listSourceDataAdapter1.PropertyMappings.Add(new MapLineStartCapVisibleMapping() { DefaultValue = true });
listSourceDataAdapter1.PropertyMappings.Add(new MapLineStartCapLengthMapping() { DefaultValue = 12 });
listSourceDataAdapter1.PropertyMappings.Add(new MapLineStartCapWidthMapping() { DefaultValue = 15 });
MapLineStartCapTemplateMapping templateMapping = new MapLineStartCapTemplateMapping();
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:
See Also