VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / CompositeDrawingEngine Class / MeasureString Methods / MeasureString(DrawingString,IDrawingFont) Method
Syntax Requirements SeeAlso
In This Topic
MeasureString(DrawingString,IDrawingFont) Method (CompositeDrawingEngine)
In This Topic
Measures the specified string when drawn with this graphics.
Syntax
'Declaration

Public Overloads Overrides Function MeasureString( _
ByVal text
A text of string to measure.
As DrawingString, _
ByVal font
The font, which should be used for measuring text.
As IDrawingFont _
) As System.Drawing.SizeF
public override System.Drawing.SizeF MeasureString(
DrawingString text,
IDrawingFont font
)

Parameters

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

Return Value

Returns a System.Drawing.SizeF 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