Method | Description | |
---|---|---|
AddGraphicToMap ( IMap map, IGeometry geometry, IRgbColor rgbColor, IRgbColor outlineRgbColor ) : void |
Draw a specified graphic on the map using the supplied colors. Calling this function will not automatically make the graphics appear in the map area. Refresh the map area after calling this function with Methods like IActiveView.Refresh or IActiveView.PartialRefresh. |
|
AddGraphicsTool ( ) : System | ||
GetPolylineFromMouseClicks ( IActiveView activeView ) : IPolyline |
Create a polyline geometry object using the RubberBand.TrackNew method when a user click the mouse on the map control. Double click the left mouse button to end tracking the polyline. |
Method | Description | |
---|---|---|
OnMouseDown ( MouseEventArgs arg ) : void | ||
OnUpdate ( ) : void |
public AddGraphicToMap ( IMap map, IGeometry geometry, IRgbColor rgbColor, IRgbColor outlineRgbColor ) : void | ||
map | IMap | An IMap interface. |
geometry | IGeometry | An IGeometry interface. It can be of the geometry type: esriGeometryPoint, esriGeometryPolyline, or esriGeometryPolygon. |
rgbColor | IRgbColor | An IRgbColor interface. The color to draw the geometry. |
outlineRgbColor | IRgbColor | An IRgbColor interface. For those geometry's with an outline it will be this color. |
return | void |
public GetPolylineFromMouseClicks ( IActiveView activeView ) : IPolyline | ||
activeView | IActiveView | An ESRI.ArcGIS.Carto.IActiveView interface that will user will interact with to draw a polyline. |
return | IPolyline |
protected OnMouseDown ( MouseEventArgs arg ) : void | ||
arg | MouseEventArgs | |
return | void |