SSpread.MaxTextCellWidth Property
Gets the width required to display the text set in the cell.
Before referencing this property, use the Col, Row properties to specify the target cell.
This property is read-only. Find the width required to display the text based on the data and font size set in the cell.
For multi-row cells with the TypeEditMultiLine and TypeTextWordWrap properties, the current column width is returned as is.
By using the MaxTextCellWidth and MaxTextCellHeight properties, you can find the optimum size according to the state of the cell.
The MaxTextColWidth property can get the required width for the entire column.
Example of usage
Col = 2;
Row = 3;
Text = "Biz/Browser";
print(MaxTextCellWidth , MaxTextCellHeight, "\n");
ColWidth(2) = MaxTextCellWidth;
RowHeight(3) = MaxTextCellHeight;
Related Items
MaxTextCellHeight, MaxTextColWidth, ColWidth property