Search
TableNode.ResizeToFitText Method (Boolean)
See Also
 





Resizes the columns and rows so that the cells are large enough to fit their text.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void ResizeToFitText (
    bool ignoreCaption
)

Visual Basic  Copy Code

Public Sub ResizeToFitText( _
    ignoreCaption As Boolean _
)

 Parameters

ignoreCaption

false if the caption bar too should be resized to fit the caption text; otherwise, true.

 Remarks

This method resizes the cells so they fit their Text on a single line, as long as the text does not contain new-line characters. The Width of each column is set to the width of its widest cell, and the Height of each row is set to the height of its highest cell. In the end, the table size is set to the sum of the extents of all rows and columns.

If ignoreCaption is false, the caption bar too will be resized, by setting CaptionHeight and the table width, so that it fits the Caption text.

 See Also