C# Class Revit.SDK.Samples.PlaceFamilyInstanceByFace.CS.PointUserControl

Stand for the point data of this user control
ファイルを表示 Open project: AMEE/revit

Public Methods

Method Description
AssertPointIntegrity ( ) : bool

Check the point data which the user input are integrated or not

CoordinateTextBox_Validating ( object sender, CancelEventArgs e ) : void

This method is called to Validate whether the TextBox data is a number.

GetPointData ( ) : Autodesk.Revit.DB.XYZ

Get the point data of this user control

IsNumber ( String number ) : bool

Check whether the string data can represent a double number

PointUserControl ( ) : System

Default constructor of ModelLinesForm

SetPointData ( Autodesk data ) : void

Set the point data of this user control

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

Method Details

AssertPointIntegrity() public method

Check the point data which the user input are integrated or not
public AssertPointIntegrity ( ) : bool
return bool

CoordinateTextBox_Validating() public method

This method is called to Validate whether the TextBox data is a number.
public CoordinateTextBox_Validating ( object sender, CancelEventArgs e ) : void
sender object the event sender(can be all TextBox)
e CancelEventArgs contain event data(not used)
return void

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

GetPointData() public method

Get the point data of this user control
public GetPointData ( ) : Autodesk.Revit.DB.XYZ
return Autodesk.Revit.DB.XYZ

IsNumber() public static method

Check whether the string data can represent a double number
public static IsNumber ( String number ) : bool
number String The test string
return bool

PointUserControl() public method

Default constructor of ModelLinesForm
public PointUserControl ( ) : System
return System

SetPointData() public method

Set the point data of this user control
public SetPointData ( Autodesk data ) : void
data Autodesk the point data
return void