Back to Devexpress

AppearanceObject.CalcDefaultTextSize(Graphics) Method

windowsforms-devexpress-dot-utils-dot-appearanceobject-dot-calcdefaulttextsize-x28-system-dot-drawing-dot-graphics-x29.md

latest1.7 KB
Original Source

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.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Size CalcDefaultTextSize(
    Graphics g
)
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Function CalcDefaultTextSize(
    g As Graphics
) As Size

Parameters

NameTypeDescription
gGraphics

A Graphics object which provides painting facilities.

|

Returns

TypeDescription
Size

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

|

See Also

AppearanceObject Class

AppearanceObject Members

DevExpress.Utils Namespace