GraphicsIHandlerMeasureString Method |
Measures the string with the given font
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax SizeF MeasureString(
Font font,
string text
)
Function MeasureString (
font As Font,
text As String
) As SizeF
abstract MeasureString :
font : Font *
text : string -> SizeF
Parameters
- font
- Type: Eto.DrawingFont
Font to measure with - text
- Type: SystemString
Text string to measure
Return Value
Type:
SizeFSize representing the dimensions of the entire text would take to draw given the specified
fontSee Also