AppearanceObject.CalcTextSize(GraphicsCache, StringFormat, String, Int32, Int32) Method
Calculates the string size.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
public SizeF CalcTextSize(
GraphicsCache cache,
StringFormat sf,
string s,
int width,
int height
)
#Parameters
Name | Type | Description |
---|---|---|
cache | Graphics |
A Graphics |
sf | String |
A String |
s | String | A String value that is the string, whose size is to be obtained. |
width | Int32 | An Int32 value that is the maximum allowed string width. |
height | Int32 | An Int32 value that is the maximum allowed string height. |
#Returns
Type | Description |
---|---|
Size |
A Size structure that is the string size. |