Skip to main content
All docs
V24.1

HtmlContentPopup.CalcBestSize(IWin32Window, Int32) Method

Calculates the popup size required to fit its content without exceeding the maximum width.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public Size CalcBestSize(
    IWin32Window owner,
    int maxWidth
)

Parameters

Name Type Description
owner IWin32Window

The owner of this popup.

maxWidth Int32

The maximum allowed popup width.

Returns

Type Description
Size

The optimal popup size required to fit the popup content.

See Also