Creating Tables with VisualScript
Tables are a very powerful feature of VisualScript. They are used to subdivide a shape into multiple cells that have similar properties to a shape:
labels, colors, hyperlinks, and more. A cell can also contain another shape. This can be the root shape of a whole "diagram": a tree, a flowchart, a ShapeContainer and even another table.
Adding a Table to a Shape
A table can be added for any shape using the AddTable() method.
The only required properties of a Table object are the number of rows and columns. This script creates a table inside a shape with three rows and one column, and three cells.
This creates a table inside a shape with three columns and one row and three cells.
This creates a table inside a shape with three columns and three rows and nine cells.