Skip to main content
All docs
V25.1
  • GraphicsCache.CalcVTextSize(String, Font) Method

    Calculates the size of the specified string when it is drawn vertically with the specified font and format.

    Namespace: DevExpress.Utils.Drawing

    Assembly: DevExpress.Utils.v25.1.dll

    NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

    Declaration

    public SizeF CalcVTextSize(
        string text,
        Font font
    )

    Parameters

    Name Type Description
    text String

    A String value that specifies the text to measure.

    font Font

    A Font object that specifies the font settings (face, size, style) used to draw the text.

    Returns

    Type Description
    SizeF

    A SizeF structure that specifies the text size (in pixels).

    See Also