Skip to main content
All docs
V25.1
  • BrickGraphics.MeasureString(String, DXFont, Int32, DXStringFormat) Method

    Measures the specified string when drawn.

    Namespace: DevExpress.XtraPrinting

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

    NuGet Package: DevExpress.Printing.Core

    Declaration

    public SizeF MeasureString(
        string text,
        DXFont font,
        int width,
        DXStringFormat stringFormat
    )

    Parameters

    Name Type Description
    text String

    String to measure.

    font DXFont

    An object that contains font information.

    width Int32

    The maximum width of the measured string.

    stringFormat DXStringFormat

    An object that contains string format parameters.

    Returns

    Type Description
    SizeF

    The string size, measured in pixels.

    See Also