Click or drag to resize

CanvasDrawText Method (String, Rectangle, Font, Fill, TextFormat)

Draw multiline text onto this canvas specifying the rectangular bound area of the string and text formatting.

Namespace:  Atalasoft.Imaging.Drawing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public Size DrawText(
	string text,
	Rectangle boundRectangle,
	Font font,
	Fill foreColor,
	TextFormat format
)

Parameters

text
Type: SystemString
The text string to draw.
boundRectangle
Type: System.DrawingRectangle
The bounding rectangle of the text to draw. Specify 0 height to prevent clipping the text
font
Type: System.DrawingFont
The text font.
foreColor
Type: Atalasoft.Imaging.DrawingFill
The text fill.
format
Type: Atalasoft.Imaging.DrawingTextFormat
The text formatting to apply.

Return Value

Type: Size
The actual size of the text drawn.
Remarks

The rectangular width must be specified. Specify a value for the rectangular height to clip the text, or 0 to prevent clipping the text.

See Also