BaseLayoutItem.BestFitWeight Property
Gets or sets the width of the current BaseLayoutItem relative to other items’ width after the LayoutControl.BestFit method has been called.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | 100 | An Integer value that is the proportion of the current BaseLayoutItem‘s width to other items’ width after the LayoutControl.BestFit method has been called. |
Remarks
If multiple items are located in a single row within a LayoutControl, you can call the LayoutControl.BestFit method to resize them proportionally. You can set the proportion of the resized items in comparison to each other. For instance, two items are displayed in a single row. If you want the first item to be twice as wide as the second, set the first item’s BestFitWeight property to 200 (or the second item’s BestFitWeight property to 50). The default BestFitWeight property value of 100 means all items will share the row’s width equally.