Back to Devexpress

XtraPanel.GetPreferredSize(Size) Method

windowsforms-devexpress-dot-xtraeditors-dot-xtrapanel-dot-getpreferredsize-x28-system-dot-drawing-dot-size-x29.md

latest1.5 KB
Original Source

XtraPanel.GetPreferredSize(Size) Method

Retrieves the size of a rectangular area into which the panel can be fitted.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[EditorBrowsable(EditorBrowsableState.Advanced)]
public override Size GetPreferredSize(
    Size proposedSize
)
vb
<EditorBrowsable(EditorBrowsableState.Advanced)>
Public Overrides Function GetPreferredSize(
    proposedSize As Size
) As Size

Parameters

NameTypeDescription
proposedSizeSize

A custom-sized area for the panel.

|

Returns

TypeDescription
Size

A Size value that specifies a rectangle into which the panel can be fit.

|

See Also

XtraPanel Class

XtraPanel Members

DevExpress.XtraEditors Namespace