Measures the specified string to get its size in logical pixels.
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public SizeF MeasureString(
string text
)
Public Function MeasureString (
text As String
) As SizeF
member MeasureString :
text : string -> SizeF
Parameters
- text
- Type: SystemString
Text string to measure.
Return Value
Type:
SizeFThe size of the text in logical pixels if drawn using Graphics.DrawText.
Remarks
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.
See Also