CanvasDrawText Method (String, Rectangle, Font, Fill) |
Draw multiline text onto this canvas specifying the rectangular bound area of the string.
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
)
Public Function DrawText (
text As String,
boundRectangle As Rectangle,
font As Font,
foreColor As Fill
) As Size
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.
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