Skip to main content

AppearanceObject.CalcDefaultTextSize(Graphics) Method

Calculates the size of a string painted with the font specified by the current object.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Size CalcDefaultTextSize(
    Graphics g
)

Parameters

Name Type Description
g Graphics

A Graphics object which provides painting facilities.

Returns

Type Description
Size

A System.Drawing.Size structure which represents the size (in pixels) of a string.

See Also