Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GraphicsCache.CalcVTextSize(String, Font, StringFormat, SizeF) 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.v24.2.dll

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

#Declaration

public SizeF CalcVTextSize(
    string text,
    Font font,
    StringFormat format,
    SizeF layoutArea
)

#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.

format StringFormat

A StringFormat object that specifies the text format, such as the line spacing and alignment.

layoutArea SizeF

A SizeF structure that specifies the maximum layout area for the text.

#Returns

Type Description
SizeF

A SizeF structure that specifies the text size in pixels.

See Also