Measures the specified string to get its size in logical pixels.
Eto (in Eto.dll) Version: 2.4.0
public SizeF MeasureString(
Public Function MeasureString (
text As String
) As SizeF
member MeasureString :
text : string -> SizeF
- Type: SystemString
Text string to measure.
The size of the text in logical pixels if drawn using Graphics.DrawText.
This is equivalent to MeasureString(Font, String)
. When you have a Graphics object, it is recommended
to use that to measure the string if available, as it may be more efficient and take into account the current graphics state.