TableLayoutPanel
Wisej.Web.TableLayoutPanel
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Represents a panel that dynamically lays out its contents in a grid composed of rows and columns.
C#
VB.NET
1
public class TableLayoutPanel : Panel, IExtenderProvider
Copied!
1
Public Class TableLayoutPanel
2
Inherits Panel
3
Implements IExtenderProvider
Copied!

Constructors

TableLayoutPanel()

Initializes a new instance of the TableLayoutPanel class.

Properties

ColumnCount

Int32: Returns or sets the number of columns in the table.

ColumnStyles

TableLayoutColumnStyleCollection: Returns a collection of column styles for the TableLayoutPanel.

Controls

TableLayoutControlCollection: Returns the collection of controls contained within the TableLayoutPanel.

GrowStyle

TableLayoutPanelGrowStyle: Returns or sets whether the TableLayoutPanel control should expand to accommodate new cells when all existing cells are occupied.

LayoutEngine

LayoutEngine: Returns the control's layout engine.

RowCount

Int32: Returns or sets the number of rows in the table.

RowStyles

TableLayoutRowStyleCollection: Returns a collection of row styles for the TableLayoutPanel.

Methods

GetCellPosition(control)

Returns the TableLayoutPanelCellPosition that represents the row and the column of the cell.
Parameter
Type
Description
control
Control
A control contained within a cell.
Returns: TableLayoutPanelCellPosition. A TableLayoutPanelCellPosition that represents the cell position.

GetColumn(control)

Returns the column position of the specified child control.
Parameter
Type
Description
control
Control
A child control of the TableLayoutPanel.
Returns: Int32. The column position of the specified child control, or -1 if the position of control is determined by LayoutEngine.
Throws:

GetColumnSpan(control)

Returns the number of columns spanned by the specified child control.
Parameter
Type
Description
control
Control
A child control of the TableLayoutPanel.
Returns: Int32. The number of columns spanned by the child control. The default is 1.

GetControlFromPosition(column, row)

Returns the child control occupying the specified position.
Parameter
Type
Description
column
Int32
The column position of the control to retrieve.
row
Int32
The row position of the control to retrieve.
Returns: Control. The child control occupying the specified cell; otherwise, null if no control exists at the specified column and row, or if the control has its Visible property set to false.
Throws:

GetPositionFromControl(control)

Returns the TableLayoutPanelCellPosition that represents the row and the column of the cell that contains the control.
Parameter
Type
Description
control
Control
A control contained within a cell.
Returns: TableLayoutPanelCellPosition. A TableLayoutPanelCellPosition that represents the cell position.

GetRow(control)

Returns the row position of the specified child control.
Parameter
Type
Description
control
Control
A child control of the TableLayoutPanel.
Returns: Int32. The row position of control , or -1 if the position of control is determined by LayoutEngine.
Throws:

GetRowHeights()

Returns an array representing the heights, in pixels, of the rows in the TableLayoutPanel.
Returns: Int32[]. An array of type Int32 that contains the heights, in pixels, of the rows in the TableLayoutPanel.

GetRowSpan(control)

Returns the number of rows spanned by the specified child control.
Parameter
Type
Description
control
Control
A child control of the TableLayoutPanel.
Returns: Int32. The number of rows spanned by the child control. The default is 1.

SetCellPosition(control, position)

Sets the TableLayoutPanelCellPosition that represents the row and the column of the cell.
Parameter
Type
Description
control
Control
A control contained within a cell.
position
A TableLayoutPanelCellPosition that represents the row and the column of the cell.

SetColumn(control, column)

Sets the column position of the specified child control.
Parameter
Type
Description
control
Control
The control to move to another column.
column
Int32
The column to which control will be moved.

SetColumnSpan(control, value)

Sets the number of columns spanned by the child control.
Parameter
Type
Description
control
Control
A child control of the TableLayoutPanel.
value
Int32
The number of columns to span.
Throws:

SetRow(control, row)

Sets the row position of the specified child control.
Parameter
Type
Description
control
Control
The control to move to another row.
row
Int32
The row to which control will be moved.

SetRowSpan(control, value)

Sets the number of rows spanned by the child control.
Parameter
Type
Description
control
Control
A child control of the TableLayoutPanel.
value
Int32
The number of rows to span.
Throws:

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

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.