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

Tool used to draw line
Inheritance: ITool
Datei anzeigen Open project: AMEE/revit

Public Methods

Method Description
Draw ( Graphics graphic ) : void

Draw lines

LineTool ( ) : System

Default constructor

OnMouseDown ( System graphic, MouseEventArgs e ) : void

Mouse down event handler

OnMouseMove ( System graphic, MouseEventArgs e ) : void

Mouse move event handle

OnRightMouseClick ( Graphics graphic, MouseEventArgs e ) : void

Right mouse click handler

Method Details

Draw() public method

Draw lines
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
return void

LineTool() public method

Default constructor
public LineTool ( ) : System
return System

OnMouseDown() public method

Mouse down event handler
public OnMouseDown ( System graphic, MouseEventArgs e ) : void
graphic System Graphics object, used to draw geometry
e MouseEventArgs Mouse event argument
return void

OnMouseMove() public method

Mouse move event handle
public OnMouseMove ( System graphic, MouseEventArgs e ) : void
graphic System Graphics object, used to draw geometry
e MouseEventArgs Mouse event argument
return void

OnRightMouseClick() public method

Right mouse click handler
public OnRightMouseClick ( Graphics graphic, MouseEventArgs e ) : void
graphic System.Drawing.Graphics Graphics object, used to drawing geometry
e MouseEventArgs Mouse event argument
return void