Skip to main content
Box

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

Places a custom string at the selected position.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

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