C# 클래스 Revit.SDK.Samples.ShaftHolePuncher.CS.RectangleTool

tool used to draw line
상속: ITool
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
Draw ( Graphics graphic ) : void

draw a rectangle

OnMouseDown ( System e ) : void

record the location point where mouse clicked

OnMouseMove ( System graphic, System e ) : void

draw a line from end point of tool to the location where mouse move

비공개 메소드들

메소드 설명
DrawRect ( Graphics graphic, Pen pen, Point p1, Point p2 ) : void

draw rectangle use the given two points p1 and p2

메소드 상세

Draw() 공개 메소드

draw a rectangle
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, use to draw geometry
리턴 void

OnMouseDown() 공개 메소드

record the location point where mouse clicked
public OnMouseDown ( System e ) : void
e System mouse event args
리턴 void

OnMouseMove() 공개 메소드

draw a line from end point of tool to the location where mouse move
public OnMouseMove ( System graphic, System e ) : void
graphic System graphic object,used to draw geometry
e System mouse event args
리턴 void