Skip to main content

BrickGraphics.MeasureString(String, Font, Int32, StringFormat) Method

Calculates the length of a specified text.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v22.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design

Declaration

public SizeF MeasureString(
    string text,
    Font font,
    int width,
    StringFormat stringFormat
)

Parameters

Name Type Description
text String

A String value.

font Font

A Font object.

width Int32

An integer value.

stringFormat StringFormat

A StringFormat object.

Returns

Type Description
SizeF

A SizeF structure, specifying the string length.

See Also