C# Класс Revit.SDK.Samples.NewRoof.RoofForms.CS.GraphicsControl

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

Открытые свойства

Свойство Тип Описание
m_drawCenter PointF

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

Метод Описание
GraphicsControl ( FootPrintRoofWrapper footPrintRoofWrapper ) : System

The construct of the GraphicsControl.

GraphicsControl_Load ( object sender, EventArgs e ) : void

When the GraphicsControl was loaded, then add the picture box control to it and initialize the draw center and scale value.

m_footPrintRoofWrapper_OnFootPrintRoofLineChanged ( object sender, EventArgs e ) : void

When the current selected FootPrintRoofLine changed in the PropertyGrid, then update the drawing.

picturebox_Paint ( object sender, PaintEventArgs e ) : void

Display the footprint roof lines in the picture box control.

Защищенные методы

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

Clean up any resources being used.

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

Метод Описание
GraphicsControl ( ) : System

The private construct

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

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

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

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

The construct of the GraphicsControl.
public GraphicsControl ( FootPrintRoofWrapper footPrintRoofWrapper ) : System
footPrintRoofWrapper FootPrintRoofWrapper A reference to FootPrintRoofWrapper which will be displayed in /// the picture box control.
Результат System

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

When the GraphicsControl was loaded, then add the picture box control to it and initialize the draw center and scale value.
public GraphicsControl_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

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

When the current selected FootPrintRoofLine changed in the PropertyGrid, then update the drawing.
public m_footPrintRoofWrapper_OnFootPrintRoofLineChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

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

Display the footprint roof lines in the picture box control.
public picturebox_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
Результат void

Описание свойств

m_drawCenter публичное свойство

public PointF m_drawCenter
Результат PointF