Skip to main content
All docs
V24.2

GraphicsCache.DrawString(String, Font, Brush, RectangleF, StringFormatInfo) Method

Draws a string with custom parameters.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public void DrawString(
    string s,
    Font font,
    Brush brush,
    RectangleF bounds,
    StringFormatInfo strFormatInfo
)

Parameters

Name Type Description
s String

Text to draw.

font Font

The text font.

brush Brush

The Brush to paint the text string.

bounds RectangleF

Specifies the text string location.

strFormatInfo DevExpress.Utils.StringFormatInfo

A StringFormatInfo object that stores line spacing, alignment, and other formatting setting for the string.

See Also