Text.FitTo Method

Configures text settings to fit the text to the given rectangle.

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

Syntax

C#
public void FitTo(
	RectangleF rect,
	FontRegistry fontRegistry,
	float dpiX,
	float dpiY
)

Parameters

rect

Type: System.Drawing.RectangleF

The rectangle to fit text to.
fontRegistry

Type: Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry

The FontRegistry to create this text for.
dpiX

Type: System.Single

The horizontal resolution of the Text in DPI.
dpiY

Type: System.Single

The vertical resolution of the Text in DPI.

See Also

Reference