C# Class Revit.SDK.Samples.AutoTagRooms.CS.AutoTagRoomsForm

The graphic user interface of auto tag rooms
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
AutoTagRoomsForm ( RoomsData roomsData ) : System

Constructor of AutoTagRoomsForm

levelsComboBox_DropDown ( object sender, EventArgs e ) : void

When the levelsComboBox drop down, adjust its width

tagTypesComboBox_DropDown ( object sender, EventArgs e ) : void

When the tagTypesComboBox drop down, adjust its width

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
AdjustWidthComboBox_DropDown ( object sender, System e ) : void

Adjust combo box drop down list width to longest string width

AutoTagRoomsForm ( ) : System

Default constructor of AutoTagRoomsForm

AutoTagRoomsForm_Load ( object sender, EventArgs e ) : void

When the AutoTagRoomsForm is loading, initialize the levelsComboBox and tagTypesComboBox

InitRoomListView ( ) : void

Initialize the roomsListView

InitializeComponent ( ) : void

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

UpdateRoomsList ( ) : void

Update the rooms information in the specified level

autoTagButton_Click ( object sender, EventArgs e ) : void

When clicked the autoTag button, then tag all rooms in the specified level.

levelsComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

When selected different level, then update the roomsListView.

Method Details

AutoTagRoomsForm() public méthode

Constructor of AutoTagRoomsForm
public AutoTagRoomsForm ( RoomsData roomsData ) : System
roomsData RoomsData The data source of AutoTagRoomsForm
Résultat System

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

levelsComboBox_DropDown() public méthode

When the levelsComboBox drop down, adjust its width
public levelsComboBox_DropDown ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

tagTypesComboBox_DropDown() public méthode

When the tagTypesComboBox drop down, adjust its width
public tagTypesComboBox_DropDown ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void