VintaSoft Barcode .NET SDK 16.0: Documentation for .NET developer
Vintasoft.Barcode.TextRendering Namespace / TextRenderer Class / MeasureString(TextFont,String) Method
Syntax Requirements SeeAlso
In This Topic
MeasureString(TextFont,String) Method (TextRenderer)
In This Topic
Measures the specified string when drawn with this text renderer.
Syntax
'Declaration

Public Function MeasureString( _
ByVal text
A text of string to measure.
As TextFont, _
ByVal font
The font, which should be used for measuring text.
As String _
) As Vintasoft.Primitives.VintasoftSizeF

Parameters

text
A text of string to measure.
font
The font, which should be used for measuring text.

Return Value

Returns a VintasoftSizeF structure that represents the size of the string specified by the text parameter as drawn with this font.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also