Click or drag to resize

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.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public static Size CalculateTextSize(
	string text,
	Size boundSize,
	Font font,
	TextFormat format
)

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