Resizes the columns and rows so that the cells are large enough to fit their text.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public void ResizeToFitText ( |
Visual Basic Copy Code |
---|
Public Sub ResizeToFitText( _ |
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.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |