Skip to main content

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

Draws the specified text string at the specified location 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,
    PointF point
)

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.

point PointF

PointF structure that specifies the upper-left corner of the drawn text.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DrawString(String, Font, Brush, PointF) 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