XlsFont
MeasureString Method
|
Measures the size of a string when rendered with the specified font settings.
Namespace:
Spire.Xls.Core.Spreadsheet
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public SizeF MeasureString(
string strValue
)
Public Function MeasureString (
strValue As String
) As SizeF
public:
SizeF MeasureString(
String^ strValue
)
member MeasureString :
strValue : string -> SizeF
Parameters
-
strValue
-
Type:
System
String
The string to measure.
Return Value
Type:
SizeF
A SizeF structure that represents the size of the string.
See Also