Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Box

PageCanvas.DrawString(String, Font, RichEditBrushBase, Rectangle) Method

Places a custom string at the selected position.

Namespace: DevExpress.XtraRichEdit.API.Layout

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public void DrawString(
    string str,
    Font font,
    RichEditBrushBase brush,
    Rectangle bounds
)

Parameters

Name Type Description
str String

A custom string that will be placed at the selected position.

font Font

Sets font parameters for the custom string.

brush RichEditBrushBase

The RichEditBrushBase object that sets the color and thickness of the string characters.

bounds Rectangle

Sets the string’s location and size.

See Also