MeasureString Method (GraphicsRendering)
In This Topic
Measures size of string in layout area.
Syntax
'Declaration
Public Function MeasureString( _
ByVal As System.String, _
Optional ByVal As System.Double _
) As System.ValueTuple(Of Double,Double)
public System.ValueTuple<double,double> MeasureString(
System.string ,
System.double
)
Parameters
- s
- String to measure.
- width
- Layout width.
Return Value
Calculating text height.
See Also