AppearanceObject.CalcTextSize(Graphics, String, Int32) Method
Calculates the size of the specified string.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
g | Graphics | A Graphics object which provides painting facilities. |
s | String | The string to be measured. |
width | Int32 | An integer value specifying the maximum width of the string, in pixels. |
Returns
Type | Description |
---|---|
SizeF | The measured size of the string, in pixels. |
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CalcTextSize(Graphics, String, Int32) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also