Skip to main content

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

Draws the specified text string in the specified rectangle with the specified Brush and Font objects.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

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

Parameters

Name Type Description
s String

String to draw.

font Font

Font that defines the text format of the string.

brush Brush

Brush that determines the color and texture of the drawn text.

bounds RectangleF

RectangleF structure that specifies the location of the drawn text.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DrawString(String, Font, Brush, RectangleF) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also