Skip to main content
A newer version of this page is available. .

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.v19.1.dll

Declaration

[Browsable(false)]
public virtual Size CalcDefaultTextSize(
    Graphics g
)

Parameters

Name Type Description
g Graphics

A Graphics object which provides painting facilities.

Returns

Type Description
Size

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

See Also