C# Класс CustomUIElements.AddGraphicsTool

Наследование: ESRI.ArcGIS.Desktop.AddIns.Tool
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnMouseDown ( MouseEventArgs arg ) : void
OnUpdate ( ) : void

Описание методов

AddGraphicToMap() публичный Метод

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.
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.
Результат void

AddGraphicsTool() публичный Метод

public AddGraphicsTool ( ) : System
Результат System

GetPolylineFromMouseClicks() публичный Метод

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.
public GetPolylineFromMouseClicks ( IActiveView activeView ) : IPolyline
activeView IActiveView An ESRI.ArcGIS.Carto.IActiveView interface that will user will interact with to draw a polyline.
Результат IPolyline

OnMouseDown() защищенный Метод

protected OnMouseDown ( MouseEventArgs arg ) : void
arg MouseEventArgs
Результат void

OnUpdate() защищенный Метод

protected OnUpdate ( ) : void
Результат void