Table of Contents

Method MeasureString

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

MeasureString(string, XFont, XStringFormat)

Measures the specified string when drawn with the specified font.

public XSize MeasureString(string text, XFont font, XStringFormat stringFormat)

Parameters

text string
font XFont
stringFormat XStringFormat

Returns

XSize

MeasureString(string, XFont)

Measures the specified string when drawn with the specified font.

public XSize MeasureString(string text, XFont font)

Parameters

text string
font XFont

Returns

XSize