'Declaration Public Overloads Function MeasureString( _ ByVal text As System.String, _ ByVal textFormat As TextFormat, _ ByVal layoutSize As System.Drawing.SizeF, _ ByVal splitOptions As TextSplitOptions, _ ByRef fitCharCount As System.Integer _ ) As System.Drawing.SizeF
public System.Drawing.SizeF MeasureString( System.string text, TextFormat textFormat, System.Drawing.SizeF layoutSize, TextSplitOptions splitOptions, out System.int fitCharCount )
Parameters
- text
- The string to measure.
- textFormat
- The text format to use.
- layoutSize
- The maximum available size for the layout.
- splitOptions
- The options controlling how to split the text if it does not fit into the specified size.
- fitCharCount
- OUT: The number of chars that fit into the specified size.
Return Value
The actual size needed to draw the string.