TableLayoutSettings
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Collects the characteristics associated with table layouts.
- C#
- VB.NET
public sealed class TableLayoutSettings : LayoutSettings, ISerializable
Public NotInheritable Class TableLayoutSettings
Inherits LayoutSettings
Implements ISerializable
Properties
ColumnCount
Int32: Returns or sets the maximum number of columns allowed in the table layout. (Default: 0)
Value: The maximum number of columns allowed in the table layout. The default is 0.
Throws:
- ArgumentOutOfRangeException The property value is less than 0.
ColumnStyles
TableLayoutColumnStyleCollection: Returns the collection of styles used to determine the look and feel of the table layout columns.
Value: A TableLayoutColumnStyleCollection that contains the column styles for the layout table.
GrowStyle
TableLayoutPanelGrowStyle: Returns or sets a value indicating how the table layout should expand to accommodate new cells when all existing cells are occupied. (Default: AddRows)
Value: One of the TableLayoutPanelGrowStyle values. The default is AddRows.
LayoutEngine
LayoutEngine: Returns the current table layout engine.
Value: The LayoutEngine currently being used.
RowCount
Int32: Returns or sets the maximum number of rows allowed in the table layout. (Default: 0)
Value: The maximum number of rows allowed in the table layout. The default is 0.
Throws:
- ArgumentOutOfRangeException The property value is less than 0.
RowStyles
TableLayoutRowStyleCollection: Returns the collection of styles used to determine the look and feel of the table layout rows.
Value: A TableLayoutRowStyleCollection that contains the row styles for the layout table.
Methods
GetCellPosition(control)
Returns the TableLayoutPanelCellPosition that represents the row and the column of the cell.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
Returns: TableLayoutPanelCellPosition. A TableLayoutPanelCellPosition that represents the cell position.
Throws:
- ArgumentNullException control is null.
GetColumn(control)
Returns the column position of the specified child control.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
Returns: Int32. The column position of the specified child control.
Throws:
- ArgumentNullException control is null.
GetColumnSpan(control)
Returns the number of columns that the cell containing the child control spans.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
Returns: Int32. The number of columns that the cell containing the child control spans.
GetRow(control)
Returns the row position of the specified child control.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
Returns: Int32. The row position of the specified child control.
Throws:
- ArgumentNullException control is null.
GetRowSpan(control)
Returns the number of rows that the cell containing the child control spans.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
Returns: Int32. The number of rows that the cell containing the child control spans.
SetCellPosition(control, cell)
Sets the TableLayoutPanelCellPosition that represents the row and the column of the cell.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
| cell | TableLayoutPanelCellPosition | A TableLayoutPanelCellPosition that represents the cell position. |
Throws:
- ArgumentNullException control is null.
SetColumn(control, column)
Sets the column position for the specified child control.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
| column | Int32 | The column position for the specified child control. |
Throws:
- ArgumentNullException control is null.
- ArgumentException column is less than -1.
SetColumnSpan(control, value)
Sets the number of columns that the cell containing the child control spans.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
| value | Int32 | The number of columns that the cell containing the child control spans. |
Throws:
- ArgumentNullException control is null.
- ArgumentOutOfRangeException value is less than 1.
SetRow(control, row)
Sets the row position of the specified child control.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
| row | Int32 | The row position of the specified child control. |
Throws:
- ArgumentNullException control is null.
- ArgumentException row is less than -1.
SetRowSpan(control, value)
Sets the number of rows that the cell containing the child control spans.
| Parameter | Type | Description |
|---|---|---|
| control | Object | A control contained within a cell. |
| value | Int32 | The number of rows that the cell containing the child control spans. |
Throws:
- ArgumentNullException control is null.
- ArgumentOutOfRangeException value is less than 1.