Click or drag to resize

ArrowRenderer Constructor (Color, Int32, ArrowProperties, Single)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Constructs a new ArrowRenderer object with the specified line color, width, ArrowProperties and miter limit. The miter limit is set to the .NET default if not specified.

Namespace:  Telogis.GeoBase.Mapping
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public ArrowRenderer(
	Color lineColor,
	int lineWidth,
	ArrowProperties arrowProperties,
	float miterLimit
)

Parameters

lineColor
Type: System.DrawingColor
The color of the line.
lineWidth
Type: SystemInt32
The width of the line, in pixels.
arrowProperties
Type: Telogis.GeoBaseArrowProperties
The properties of the arrow (length, width, color, spacing).
miterLimit
Type: SystemSingle
The limit on the ratio between the corner thickness and line width.
Examples
C#
using Telogis.GeoBase;
using Telogis.GeoBase.Mapping;
namespace LinesAndArrows {
    public partial class Form1 : Form {
        public Form1() {
            RendererList renderList = new RendererList();
            InitializeComponent();
            mapMain.Center = new LatLon(34.061510, -118.240412);
            mapMain.Zoom = 9;
            mapMain.Renderer = renderList;
            // Create arrow properties
            ArrowProperties TheArrowProperties = new ArrowProperties();
            TheArrowProperties.Spacing = 30;
            TheArrowProperties.Width = 15;
            TheArrowProperties.Length = 30;
            TheArrowProperties.Color = Color.Purple;
            // Create ArrowRenderer
            ArrowRenderer TheArrowLine = new ArrowRenderer(Color.AliceBlue, 6, TheArrowProperties);
            // Create a line
            Telogis.GeoBase.Geometry.LineString ArbitraryLine = new Telogis.GeoBase.Geometry.LineString(
              new Telogis.GeoBase.LatLon[] {
                 new Telogis.GeoBase.LatLon(34.058078,-118.294401),
                 new Telogis.GeoBase.LatLon(34.059573,-118.192107)
              });
            // Use the line points for the arrow line
            TheArrowLine.LatLons = ArbitraryLine.Points;
            renderList.Add(TheArrowLine);
            mapMain.Invalidate();
        }
    }
}
See Also