Table of Contents

Method DrawString

Namespace
PdfSharp.Drawing.Layout
Assembly
PdfSharp.dll

DrawString(string, XFont, XBrush, XRect)

Draws the text.

public void DrawString(string text, XFont font, XBrush brush, XRect layoutRectangle)

Parameters

text string

The text to be drawn.

font XFont

The font.

brush XBrush

The text brush.

layoutRectangle XRect

The layout rectangle.

DrawString(string, XFont, XBrush, XRect, XStringFormat)

Draws the text.

public void DrawString(string text, XFont font, XBrush brush, XRect layoutRectangle, XStringFormat format)

Parameters

text string

The text to be drawn.

font XFont

The font.

brush XBrush

The text brush.

layoutRectangle XRect

The layout rectangle.

format XStringFormat

The format. Must be XStringFormat.TopLeft