LayoutControl.BestFit() Method

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

public void BestFit()
Public Sub 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.

Implements

DevExpress.XtraLayout.ILayoutControl.BestFit()
See Also