Skip to main content
All docs
V24.1

MapLineCap.Visible Property

Specifies whether a map line cap is visible.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

[DefaultValue(false)]
public bool Visible { get; set; }

Property Value

Type Default Description
Boolean false

true if the map line cap is visible; otherwise, false.

Remarks

The default cap shape is an arrow. The arrow is displayed if the Visible property is set to true and the Template is not specified.

Example

The following example specifies the end cap template and shows the default arrow for the MapLine start cap:

MapLineCap

MapLine line = new MapLine() { Point1 = new GeoPoint(0, 0), 
                               Point2 = new GeoPoint(-10, -30), 
                               StrokeWidth = 2, 
                               Stroke = System.Drawing.Color.Blue };
line.StartLineCap.Visible = true;
line.StartLineCap.Length = 20;
line.StartLineCap.Width = 10;

line.EndLineCap.Visible = true;
line.EndLineCap.Template = new MapUnit[] {
   new MapUnit(-0.5, 0),
   new MapUnit(0, 0.5),
   new MapUnit(0.5, 0),
   new MapUnit(0, -0.5),
};
line.EndLineCap.Length = 10;
line.EndLineCap.Width = 10;

mapItemStorage1.Items.Add(line);
See Also