CanvasCalculateTextSize Method (String, Size, Font, TextFormat) |
Calculates the size of bound text without actually drawing it.
Namespace:
Atalasoft.Imaging.Drawing
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public static Size CalculateTextSize(
string text,
Size boundSize,
Font font,
TextFormat format
)
Public Shared Function CalculateTextSize (
text As String,
boundSize As Size,
font As Font,
format As TextFormat
) As Size
Parameters
- text
- Type: SystemString
The text string to evaluate. - boundSize
- Type: System.DrawingSize
The size of the bound - font
- Type: System.DrawingFont
The text font. - format
- Type: Atalasoft.Imaging.DrawingTextFormat
The text formatting to apply.
Return Value
Type:
Size Returns the size of bound text without actually drawing it.
See Also