Click or drag to resize

ArrowProperties Structure

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
The color, length, spacing, and width of arrows drawn along an arbitrary array of points on a map.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.86.0.0
Syntax
public struct ArrowProperties

The ArrowProperties type exposes the following members.

Properties
  NameDescription
Public propertyColor
The arrow color.
Public propertyLength
The length of the arrow in pixels. Setting to zero hides the arrows.
Public propertySpacing
The minimum spacing between arrows.
Public propertyWidth
The width of the arrow in pixels.
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Examples
C#
// Create a line
Telogis.GeoBase.Geometry.LineString myLine = new Telogis.GeoBase.Geometry.LineString(
    new Telogis.GeoBase.LatLon[] {
        new Telogis.GeoBase.LatLon(33.624499,-117.795887),
        new Telogis.GeoBase.LatLon(33.626529,-117.737248)
    });

// Create an arrow renderer
ArrowRenderer myArrowLine = new ArrowRenderer();
myArrowLine.LatLons = myLine.Points;
myArrowLine.LineColor = Color.Black;
myArrowLine.LineWidth = 3;

// Specify ArrowProperties
myArrowLine.ArrowProperties = new ArrowProperties {
    // Arrow color is red
    Color = Color.Red,
    // Arrow length is 10 px
    Length = 20,
    // Arrow width is 10px
    Width = 10,
    // Spacing between arrows on line is 20px
    Spacing = 20
};

// Add arrow line to renderer
renderList.Add(myArrowLine);

// Center on line and force redraw
mapCtrl1.Center = new LatLon(33.628033, -117.772916);
mapCtrl1.Invalidate();
See Also