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

tool used to draw line
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( ) : void

clear all the points in the tool

Draw ( Graphics graphic ) : void

draw lines stored in the tool

GetPoints ( ) : List

get all lines drawn in pictureBox

LineTool ( ) : System

default constructor

OnMouseDown ( System e ) : void

restore the location point where mouse click

OnMouseMove ( System graphic, System e ) : void

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

Method Details

Clear() public méthode

clear all the points in the tool
public Clear ( ) : void
Résultat void

Draw() public méthode

draw lines stored in the tool
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, use to draw geometry
Résultat void

GetPoints() public méthode

get all lines drawn in pictureBox
public GetPoints ( ) : List
Résultat List

LineTool() public méthode

default constructor
public LineTool ( ) : System
Résultat System

OnMouseDown() public méthode

restore the location point where mouse click
public OnMouseDown ( System e ) : void
e System mouse event args
Résultat void

OnMouseMove() public méthode

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
Résultat void