Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description

Returns the minimum height required to fit the given text string using the given font.

C#
vb.net

Parameters

text
The text string whose height will be calculated.
font
The font that will be used to format the text.
desiredWidth
The width, in character units, of the cell or area into which the text will be inserted.

Returns

The minimum height, in character units, required to accomodate the given text string.

Remarks

Themaximum height of any one row is 409 units, so if the height return is greater than 409, you must merge cells across multiple rows and set the height of each row to accomodate the total minimum height of the text.

Examples

C#
vb.net
  • No labels