Method DrawString
DrawString(string, XFont, XBrush, XRect)
Draws the text.
public void DrawString(string text, XFont font, XBrush brush, XRect layoutRectangle)
Parameters
textstringThe text to be drawn.
fontXFontThe font.
brushXBrushThe text brush.
layoutRectangleXRectThe layout rectangle.
DrawString(string, XFont, XBrush, XRect, XStringFormat)
Draws the text.
public void DrawString(string text, XFont font, XBrush brush, XRect layoutRectangle, XStringFormat format)
Parameters
textstringThe text to be drawn.
fontXFontThe font.
brushXBrushThe text brush.
layoutRectangleXRectThe layout rectangle.
formatXStringFormatThe format. Must be
XStringFormat.TopLeft