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

Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Свойство Type Description
m_drawCenter PointF

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

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

GraphicsControl() public méthode

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.
Résultat System

GraphicsControl_Load() public méthode

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

m_footPrintRoofWrapper_OnFootPrintRoofLineChanged() public méthode

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

picturebox_Paint() public méthode

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

Property Details

m_drawCenter public_oe property

public PointF m_drawCenter
Résultat PointF