Makes the box big enough so that its text is entirely visible.
VB6 Copy Code |
---|
Public Sub FitSizeToText () |
C++ Copy Code |
---|
public: |
Makes a box big enough, so that no parts of the Text displayed inside the box are obscured.
If TextStyle is set to one of the multi-line styles - tsLeftML, tsRightML or tsCenterML, FitSizeToText changes only the height of a box, leaving its width intact.
If TextStyle is set to one of the "fit in polygon" styles such as tsFitPolyTop, tsFitPolyCenter or tsFitPolyBottom, the method changes both the box' width and height, maintaining their original ratio.
FitSizeToText does not work with the other text styles.
FlowChartX Programmer's Guide | © 2023 MindFusion |