TableLayoutSettings.SetColumnSpan Method (Object, Int32)

 

Sets the number of columns that the cell containing the child control spans.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Public Sub SetColumnSpan (
	control As Object,
	value As Integer
)

Parameters

control
Type: System.Object

A control contained within a cell.

value
Type: System.Int32

The number of columns that the cell containing the child control spans.

Exception Condition
ArgumentNullException

control is null.

ArgumentOutOfRangeException

value is less than 1.

.NET Framework
Available since 2.0
Return to top
Show: