Search
FlowChart.CreateTable Method
See Also
 



Creates a new Table node.

 Syntax

VB6  Copy Code

Public Function CreateTable( _
    ByVal x As Long, _
    ByVal y As Long, _
    ByVal width As Long, _
    ByVal height As Long _
) As Table

C++  Copy Code

public:
Table* CreateTable (
    int x,
    int y,
    int width,
    int height
)

 Parameters

x
The x coordinate of the new table.
y
The y coordinate of the new table.
width
The width of the table.
height
The height of the table.

 Return Value

A reference to a Table object, representing the newly created table.

 Remarks

Creates a new table at the the specified location. Properties of any new table are initialized to the values of FlowChart's corresponding table-defaults properties, such as TableFillColor, TableFrameColor and so on. For a complete list with all default properties, check Default Values of Object Properties.

Arrows having their AutoRoute property enabled are re-routed if they intersect with the new table. Thus when constructing a large diagram programmatically, each arrow might be re-routed many times, once for each call to CreateTable whose location arguments collide with arrow's bounding rectangle. That might slow down diagram creation a lot. To avoid it, first create all tables, and afterwards the arrows; that requires a single calculation for each arrow's route.

 See Also