Method DrawText
DrawText(Graphics, RectD, Font, Color, Color)
Draws text within a specified rectangle on the provided graphics context.
public virtual void DrawText(Graphics dc, RectD rect, Font font, Color foreColor, Color backColor)
Parameters
dcGraphicsThe graphics context used for drawing the text.
rectRectDThe rectangle that defines the area where the text will be drawn.
fontFontThe font used to render the text.
foreColorColorThe color of the text.
backColorColorThe background color behind the text.
Remarks
The text is aligned within the specified rectangle according to the current text alignment settings.