Graphics.MeasureString Method

Measures the specified string when drawn with the specified Font.

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

Syntax

C#
public static Size MeasureString(
	string text,
	Font font
)

Parameters

text

Type: System.String

A string to measure.
font

Type: Aurigma.GraphicsMill.Drawing.Font

A Font that defines the text format of the string.

Return Value

A SizeF structure that represents the size of the given string.

See Also

Reference