C# Class Revit.SDK.Samples.ShaftHolePuncher.CS.LineTool

tool used to draw line
Inheritance: ITool
Exibir arquivo Open project: AMEE/revit

Public Methods

Method Description
Draw ( Graphics graphic ) : void

draw lines recorded in the tool

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 moved

Method Details

Draw() public method

draw lines recorded in the tool
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, use to draw geometry
return void

OnMouseDown() public method

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

OnMouseMove() public method

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