All docs
V21.2
21.2 (EAP/Beta)
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

MapLineCap Class

Contains map line cap settings.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v21.2.dll

Declaration

public class MapLineCap :
    MapDependencyObject,
    IMarkerElement

Remarks

Use this class to define shapes that are displayed at the beginning and at the end of map lines.

Example

The following example specifies a custom end cap shape, shows the default arrow for the MapLine start cap, and sets their dimensions:

Map Line Caps

<dxm:MapLine Point1="-3, -10" Point2="-10, -28"  Stroke="Blue">
  <dxm:MapLine.StrokeStyle>
    <dxm:StrokeStyle Thickness="2"/>
  </dxm:MapLine.StrokeStyle>
  <dxm:MapLine.StartLineCap >
    <dxm:MapLineCap Visible="True" Length="30" Width="15"/>
  </dxm:MapLine.StartLineCap>
  <dxm:MapLine.EndLineCap>
    <dxm:MapLineCap  Visible="True" Length="30" Width="15">
      <dxm:MapLineCap.Geometry>
        <PathGeometry Figures="M 0, 0 L 0,-0.5 L 0.5,-0.5 L 0.5, 0.5 L 0,0.5 Z "/>
      </dxm:MapLineCap.Geometry>
    </dxm:MapLineCap>
  </dxm:MapLine.EndLineCap>
</dxm:MapLine>
See Also