Click or drag to resize

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

Draw a single line text string onto this canvas specifying the upper left corner position and a solid background color.

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,
	SolidFill backColor,
	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.
backColor
Type: Atalasoft.Imaging.DrawingSolidFill
The background color.
format
Type: Atalasoft.Imaging.DrawingTextFormat
The text formatting to apply.

Return Value

Type: Size
See Also