ArrowProperties Structure |
Namespace: Telogis.GeoBase
The ArrowProperties type exposes the following members.
Name | Description | |
---|---|---|
Color |
The arrow color.
| |
Length |
The length of the arrow in pixels.
Setting to zero hides the arrows.
| |
Spacing |
The minimum spacing between arrows.
| |
Width |
The width of the arrow in pixels.
|
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
// 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();