This documentation is for the old version. Go to the latest Graphics Mill docs

Font.GetBlackBox Method (Char)

Returns a rectangle that describes the character black box.

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

Syntax

Visual Basic
Public Function GetBlackBox ( _
	symbol As Char _
) As RectangleF
C#
public RectangleF GetBlackBox(
	char symbol
)

Parameters

symbol

Type: System.Char

Character to retrieve black box for.

Return Value

The rectangle that describes the character black box.

Remarks

Character black box is a tightest bounding rectangle of the glyph in the character cell. This way you can calculate actual height of the character without any leading whitespaces.

See Also

Reference