ManagedTextTableExample uses Managed DgnPlatformNet API To demonstrate creating and populating a text table element.
This sample should be launched from MicroStationDeveloperShell.bat so that environment variables are initialized properly. This sample can be build directly from Visual Studio or using ManagedTextTableExample.mke file.
When this sample is loaded in MicroStation it launches a Windows Form that contains a table and some Toolbar buttons. It also immediately creates a text table in MicroStation.
-
The Toolbar button "Get From Text Table" can be used to update table on the form from Text Table in MicroStation. Updates can be addition of new rows, deletion of rows or modification of the contents of the text table.
-
If the table is deleted from MicroStation, clicking this button will create an empty text table again.
-
The Toolbar button "Set Text Table From Form" can be used to update Text Table in MicroStation from table on the form. Updates can be addition of new rows, deletion of rows or modification of the contents of the table.
-
If the text table is deleted from MicroStation clicking this button will create a text table again and will populate it with data in table on the form.
-
You can add/remove rows/columns from Text Table in MicroStation or table on the form and the changes will be reflected navigating either side.
-
Two buttons are provided on the form to add/remove columns i.e. "Add New Column" and "Remove Column".