GraphicsCache.CalcVTextSize(String, Font, StringFormat, Int32, Int32, out Boolean) 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.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
public SizeF CalcVTextSize(
string text,
Font font,
StringFormat strFormat,
int maxWidth,
int maxHeight,
out bool isCropped
)
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. |
| strFormat | StringFormat | A StringFormat object that specifies the text format, such as the line spacing and alignment. |
| maxWidth | Int32 | An integer value that specifies the maximum width, in pixels, of the text. |
| maxHeight | Int32 | An integer value that specifies the maximum height, in pixels, of the text. |
| isCropped | Boolean | A value that specifies whether the text is trimmed (its size is larger than the clipping rectangle). |
Returns
| Type | Description |
|---|---|
| SizeF | A SizeF structure that specifies the text size in pixels. |