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

Calculates the length of a specified text.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.1.Core.dll


public SizeF MeasureString(
    string text,
    Font font,
    int width,
    StringFormat stringFormat
Public Function MeasureString(
    text As String,
    font As Font,
    width As Integer,
    stringFormat As StringFormat
) As SizeF


Name Type Description
text String

A String value.

font Font

A Font object.

width Int32

An integer value.

stringFormat StringFormat

A StringFormat object.


Type Description

A SizeF structure, specifying the string length.

See Also