TableLayoutSettings.SetColumnSpan Method (Object, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 void SetColumnSpan(
	object control,
	int value
)

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: