C# Класс Revit.SDK.Samples.NewHostedSweep.CS.EdgeBinding

Binds an edge with some properties which contains its geometry information and indicates whether the edge is selected or highlighted.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Dispose

Draw ( Graphics g ) : void

Draw the edge in Graphics.

EdgeBinding ( System.Edge edge ) : System

Constructor takes Edge as parameter.

HighLight ( float x, float y ) : bool

If the edge under the location (x, y), set the highlight flag to true, otherwise false.

Reset ( ) : void

Reset the status of the edge: un-highlighted, un-selected

Update ( Transform rotation, XYZ translation, double scale ) : void

Update the edge's geometry according to the transformation.

Приватные методы

Метод Описание
GetRegion ( ) : Region

Return the Edge Region.

HitTest ( float x, float y ) : bool

Test whether or not the edge is under a specified location.

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

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

Dispose
public Dispose ( ) : void
Результат void

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

Draw the edge in Graphics.
public Draw ( Graphics g ) : void
g System.Drawing.Graphics Graphics
Результат void

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

Constructor takes Edge as parameter.
public EdgeBinding ( System.Edge edge ) : System
edge System.Edge Edge
Результат System

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

If the edge under the location (x, y), set the highlight flag to true, otherwise false.
public HighLight ( float x, float y ) : bool
x float X coordinate
y float Y coordinate
Результат bool

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

Reset the status of the edge: un-highlighted, un-selected
public Reset ( ) : void
Результат void

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

Update the edge's geometry according to the transformation.
public Update ( Transform rotation, XYZ translation, double scale ) : void
rotation Transform Rotation transform
translation XYZ Translation transform
scale double Scale transform
Результат void