FlowLayoutPanel
Wisej.Web.FlowLayoutPanel
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Represents a panel that dynamically arranges its children horizontally or vertically in automatic rows or columns.
C#
VB.NET
1
public class FlowLayoutPanel : Panel, IExtenderProvider
Copied!
1
Public Class FlowLayoutPanel
2
Inherits Panel
3
Implements IExtenderProvider
Copied!
Arranges child controls horizontally or vertically. Ignores the control location, dock style and anchoring. Uses the following properties of the child controls:
  • Margin Increases the space around the control.
  • FillWeight Stretches the width of control proportionally, according to the fill weights of all the children, to use the remaining space in the row.
  • MinimumSize Enforces the minimum size of controls stretched using the FillWeight value.
  • MaximumSize Enforces the maximum size of controls stretched using the FillWeight value.
  • FlowBreak Determines whether to create a new row or a new column after the control.
Uses the following properties of the parent FlowLayoutPanel control:

Constructors

FlowLayoutPanel()

Initializes a new instance of the FlowLayoutPanel class.

Properties

FlowDirection

FlowDirection: Returns or sets a value indicating the flow direction of the FlowLayoutPanel control.

LayoutEngine

LayoutEngine: Returns the control's layout engine.

WrapContents

Boolean: Returns or sets whether the FlowLayoutPanel control should wrap its contents or let the contents be clipped.

Methods

GetFillWeight(control)

Determines whether to proportionally stretch the width or the control to fill the remaining space it the containing row.
Parameter
Type
Description
control
Control
The child control.
Returns: Int32. The fill weight value associated with the control.
The FillWeight property defines the relative width of a control in a row managed by the FlowLayoutPanel. The default value is 0 and the maximum value is 100 (the control will fill all the remaining width of the row.)

GetFlowBreak(control)

Determines whether to create a new row or a new column, depending on the value of the FlowDirection property, after the control.
Parameter
Type
Description
control
Control
The child control.
Returns: Boolean. true if the flow break is set; otherwise, false.

SetFillWeight(control, value)

Determines whether to proportionally stretch the width or the control to fill the remaining space it the containing row.
Parameter
Type
Description
control
Control
The child control.
value
Int32
The fill weight value to set.
The FillWeight property defines the relative width of a control in a row managed by the FlowLayoutPanel. The default value is 0 and the maximum value is 100 (the control will fill all the remaining width of the row.) Throws:

SetFlowBreak(control, value)

Determines whether to create a new row or a new column, depending on the value of the FlowDirection property, after the control.
Parameter
Type
Description
control
Control
The child control.
value
Boolean
The flow-break value to set.

Inherited

Properties

Name
Description
From
Returns or sets the description that will be reported to accessibility client applications. It is assigned to the "alt" attribute of the browser element.
Control
Returns or sets the name of the control for use by accessibility client applications. It is assigned to the "name" attribute of the browser element.
Control
Returns or sets the accessible role of the control that will be reported to accessibility client applications. It is assigned to the "role" attribute of the browser element.
Control
AllowDrag
Returns or sets whether the control can initiate a drag-drop operation.
Control
AllowDrop
Returns or sets whether the control can accept data that the user drags onto it.
Control
Anchor
Returns or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.
Control
Anonymous
Returns or sets whether the control receives pointer events. Anonymous controls let pointer events bubble to their parents.
Control
Sets the appearance key for the theme engine.
Control
Returns or sets whether the container enables the user to scroll to any controls placed outside of its visible boundaries.
Returns or sets the size of the auto-scroll margin.
Returns or sets the minimum size of the auto-scroll.
AutoShow
Returns or sets a value that indicates whether the collapsed panel is automatically expanded when the mouse hovers over the title bar.
Panel
AutoSize
Returns or sets a value that indicates whether the control resizes based on its contents.
Panel
Indicates the automatic sizing behavior of the control.
Panel
BackColor
Returns or sets the background color for the control.
Control
Returns or sets the background image displayed in the control.
Control
Returns or sets the background image layout as defined in the ImageLayout enumeration.
Control
Returns or sets the background image displayed in the control.
Control
Returns a flag indicating that the control is becoming the active control.
Control
Returns or sets the BindingContext for the control.
Control

Methods

Name
Description
From
Adds a new listener script to the event name to the client widget.
Control
Adds the CSS class name to the widget element. If the class already exists in the CssClass it's not added.
Control
Adds the specified theme state to the widget.
Control
Executes the specified delegate asynchronously.
Control
Executes the specified delegate asynchronously.
Control
Brings the control to the front of the z-order.
Control
Runs the JavaScript function within the component's context in the browser.
Control
Runs the JavaScript function within the component's context in the browser and returns the value to the callback method.
Control
Asynchronously runs the JavaScript function within the component's context in the browser and returns an awaitable Task containing the value returned by the remote call.
Control
Centers the position of the control within the bounds of the parent.
Control
Centers the position of the control within the bounds of the parent either horizontally, vertically or both.
Control
Indicates whether the specified control is a child of this control.
Control
Creates and register this control and all its children.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Begins a drag-and-drop operation.
Control
Retrieves the return value from the asynchronous operation represented by asyncResult .
Control
Runs the javaScript code within the component's context in the browser.
Control

Events

Name
Description
From
Appear
Fired after the control has been fully rendered on the client.
Control
Fired when the AutoSize property value changes.
Control
Fired when the value of the BackColor property changes.
Control
Fired when the value of the BackgroundImage property changes.
Control
Fired when the BackgroundImageLayout property changes.
Control
Fired when the value of the BecomingActiveControl property changes.
Control
Occurs when the value of the BindingContext property changes.
Control
Fired when the value of the CausesValidation property changes.
Control
Click
Fired when the control is clicked.
Control
Fired when the ClientSize property value changes.
Control
Fired when the value of the ContextMenu property changes.
Control
Fired when a new control is added to the ControlCollection.
Control
Fired when a control is made visible the first time, fully created and sent to the client.
Control
Fired when a control is removed from the ControlCollection.
Control
Fired when the value of the Cursor property changes.
Control
Disappear
Fired after the control is no longer visible on the client.
Control
Disposed
Fired when the component is disposed.
Control
Fired when the value of the Dock property changes.
Control
Fired when the control is double-clicked.
Control
DragDrop
Fired when a drag-and-drop operation is completed.
Control

Extension Methods

Name
Description
From
Sounds a tone through the computer's speaker.
Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
Asynchronous displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
[ToJSON(obj, formatted)](https://docs.microsoft.com/en-us/dotnet/api/system.json.tojson(obj, formatted))
Serializes the object to a JSON string.
JSON
[ToJSON(obj, options)](https://docs.microsoft.com/en-us/dotnet/api/system.json.tojson(obj, options))
Serializes the object to a JSON string.
JSON

Inherited By

Name
Description
Represents the navigation and manipulation user interface (UI) for controls that are bound to a data source.

Implements

Name
Description
Bindable components implement this interface.
IImage
Provides access to common image properties across the controls that implement this interface.
All wisej components implement this interface.
All wisej controls derived from the Control class must implement this interface.
Allows an object to serialize itself.