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
rectRectDThe 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
textHorizontalAlignmentis not used.fontFontThe font used to draw the text.
wrappedTextIEnumerable<string>The text to draw.
textHorizontalAlignmentTextHorizontalAlignmentThe horizontal alignment of the text
lineDistancedoubleThe vertical distance between the lines of text. Optional. If not specified, 0 is used.
foreColorColorThe foreground color of the text. If
null, text will be only measured and no drawing will be performed.backColorColorThe background color of the text.