Creates a new Box node.
VB6 Copy Code |
---|
Public Function CreateBox( _ |
C++ Copy Code |
---|
public: |
A reference to a Box object representing the newly created box.
Creates a new box at the the specified location. Properties of any new box are initialized to the values of FlowChart's corresponding box-defaults properties, such as BoxFillColor, BoxFrameColor 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 box. Thus when constructing a large diagram programmatically, each arrow might be re-routed many times, once for each call to CreateBox whose location arguments collide with arrow's bounding rectangle. That might slow down diagram creation a lot. To avoid it, first create all boxes, and afterwards the arrows; that requires a single calculation for each arrow's route.