Method DrawStrings
DrawStrings(RectD, Font, IEnumerable<string>?, TextHorizontalAlignment, double, Color?, Color?)
Draws range of strings.
public virtual SizeD DrawStrings(RectD rect, Font font, IEnumerable<string>? wrappedText, TextHorizontalAlignment textHorizontalAlignment = TextHorizontalAlignment.Left, double lineDistance = 0, Color? foreColor = null, Color? backColor = null)
Parameters
rect
RectDThe bounding rectangle used to specify location and maximal width of the text. Height of the rectangle is not used. If width of the rectangle is not specified
textHorizontalAlignment
is not used.font
FontThe font used to draw the text.
wrappedText
IEnumerable<string>The text to draw.
textHorizontalAlignment
TextHorizontalAlignmentThe horizontal alignment of the text
lineDistance
doubleThe vertical distance between the lines of text. Optional. If not specified, 0 is used.
foreColor
ColorThe foreground color of the text. If
null
, text will be only measured and no drawing will be performed.backColor
ColorThe background color of the text.