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

LayoutControl.BestFit() Method

Proportionally resizes layout items that are displayed in a single row.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.2.dll

Declaration

public void BestFit()

Remarks

The BestFit method proportionally resizes layout items that are displayed in a single row. For instance, if two items are displayed in a single row, the BestFit method will resize the items so that each occupies half of the row’s space.

Resized items can share the row’s space unequally. You can specify the row width percentage that each item will gain via the BaseLayoutItem.BestFitWeight property. See this topic to learn more.

See Also