C# 클래스 CustomUIElements.AddGraphicsTool

상속: ESRI.ArcGIS.Desktop.AddIns.Tool
파일 보기 프로젝트 열기: Esri/arcobjects-sdk-community-samples

공개 메소드들

메소드 설명
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