Click or drag to resize

PdfFontMetricsGetTextBounds Method (Double, String)

Gets bounding box that surrounds the text.

Namespace:  Atalasoft.PdfDoc.Generating.ResourceHandling.Fonts
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public PdfBounds GetTextBounds(
	double pointSize,
	string text
)

Parameters

pointSize
Type: SystemDouble
Size of the font in points.
text
Type: SystemString
The text to be measured.

Return Value

Type: PdfBounds
descent plus its ascent. Vertical writing systems are not currently supported.
Examples
PdfBounds bounds = metrics.GetTextBounds(12.0, "Striling engine");
See Also