Font.GetBlackBox Method (String)

Returns a rectangle that describes the string black box.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public Rectangle GetBlackBox(
	string string
)

Parameters

string

Type: System.String

The string to retrieve a black box for.

Return Value

The rectangle that describes the string black box.

Remarks

String black box is a tightest bounding rectangle of glyphs in cells of all characters in a string. This way you can calculate actual height of the character without any leading whitespaces.

See Also

Reference