C# Класс Revit.SDK.Samples.NewPathReinforcement.CS.LineTool

tool used to draw line
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Clear() публичный Метод

clear all the points in the tool
public Clear ( ) : void
Результат void

Draw() публичный Метод

draw lines stored in the tool
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, use to draw geometry
Результат void

GetPoints() публичный Метод

get all lines drawn in pictureBox
public GetPoints ( ) : List
Результат List

LineTool() публичный Метод

default constructor
public LineTool ( ) : System
Результат System

OnMouseDown() публичный Метод

restore the location point where mouse click
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