Skip to main content

LayoutGroup.BestFit() Method

Resizes all elements with the group so that they are displayed in the optimal way.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

Declaration

public void BestFit()

Remarks

Use the BestFit method to resize layout items within the group.

The following example demonstrates how to resize a layout group for optimal display:

layoutControlGroup5.Parent.BestFit();
See Also