Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

In This Article

Draws a string with custom parameters.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#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