C# Class Revit.SDK.Samples.NewRoof.RoofForms.CS.GraphicsControl

ファイルを表示 Open project: AMEE/revit Class Usage Examples

Public Properties

Property Type Description
m_drawCenter PointF

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
GraphicsControl ( ) : System

The private construct

InitializeComponent ( ) : void

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

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GraphicsControl() public method

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.
return System

GraphicsControl_Load() public method

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
return void

m_footPrintRoofWrapper_OnFootPrintRoofLineChanged() public method

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
return void

picturebox_Paint() public method

Display the footprint roof lines in the picture box control.
public picturebox_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
return void

Property Details

m_drawCenter public_oe property

public PointF m_drawCenter
return PointF