FlexLayoutPanelExtensions
Wisej.Web.Markup.FlexLayoutPanelExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.FlexLayoutPanelExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the FlexLayoutPanel class.
public class FlexLayoutPanelExtensions
Sets the horizontal alignment for a specific control within the specified FlexLayoutPanel.
TPanel
panel
The panel containing the control.
control
The control to set the horizontal alignment for.
value
The horizontal alignment value to set.
Returns: TPanel. The modified panel with the updated horizontal alignment for the control.
This method allows you to fluently set the horizontal alignment of a control within a panel.
var panel = new FlexLayoutPanel();
var control = new Control();
panel.AlignX(control, HorizontalAlignment.Right);
Sets the vertical alignment for a specific control within the specified FlexLayoutPanel.
TPanel
panel
The panel containing the control.
control
The control to set the vertical alignment for.
value
The vertical alignment value to set.
Returns: TPanel. The modified panel with the updated vertical alignment for the control.
This method allows you to fluently set the vertical alignment of a control within a panel.
var panel = new FlexLayoutPanel();
var control = new Control();
panel.AlignY(control, VerticalAlignment.Bottom);
Sets the fill weight for a specific control within the specified FlexLayoutPanel.
TPanel
panel
The panel containing the control.
control
The control to set the fill weight for.
value
The fill weight value to set.
Returns: TPanel. The modified panel with the updated fill weight for the control.
This method allows you to fluently set the fill weight of a control within a panel.
var panel = new FlexLayoutPanel();
var control = new Control();
panel.FillWeight(control, 2);
Sets the horizontal alignment of the specified FlexLayoutPanel.
TPanel
panel
The panel to set the horizontal alignment for.
value
The horizontal alignment value to set.
Returns: TPanel. The modified panel with the updated horizontal alignment.
This method allows you to fluently set the horizontal alignment of a panel.
var panel = new FlexLayoutPanel();
panel.HorizontalAlign(HorizontalAlignment.Center);
Sets the layout style of the specified FlexLayoutPanel.
TPanel
panel
The panel to set the layout style for.
value
The layout style value to set.
Returns: TPanel. The modified panel with the updated layout style.
This method allows you to fluently set the layout style of a panel.
var panel = new FlexLayoutPanel();
panel.LayoutStyle(FlexLayoutStyle.Wrap);
Sets the spacing between elements in the specified FlexLayoutPanel.
TPanel
panel
The panel to set the spacing for.
value
The spacing value to set.
Returns: TPanel. The modified panel with the updated spacing.
This method allows you to fluently set the spacing between elements in a panel.
var panel = new FlexLayoutPanel();
panel.Spacing(10);
Sets the vertical alignment of the specified FlexLayoutPanel.
TPanel
panel
The panel to set the vertical alignment for.
value
The vertical alignment value to set.
Returns: TPanel. The modified panel with the updated vertical alignment.
This method allows you to fluently set the vertical alignment of a panel.
var panel = new FlexLayoutPanel();
panel.VerticalAlign(VerticalAlignment.Top);
The type of the panel, which must inherit from .
The type of the panel, which must inherit from .
The type of the panel, which must inherit from .
The type of the panel, which must inherit from .
The type of the panel, which must inherit from .
The type of the panel, which must inherit from .
The type of the panel, which must inherit from .