Search
TableNode.ResizeToFitText Method (Boolean, Boolean)
See Also
 





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

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void ResizeToFitText (
    bool ignoreCaption,
    bool keepCellWidth
)

Visual Basic  Copy Code

Public Sub ResizeToFitText( _
    ignoreCaption As Boolean, _
    keepCellWidth As Boolean _
)

 Parameters

ignoreCaption
false if the caption bar too should be resized to fit the caption text; otherwise, true.
keepCellWidth
true if column widths should stay unchanged; otherwise, false.

 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.

If keepCellWidth is true, the cell width is preserved unchanged.

 See Also