System.Windows.Forms.TableLayoutPanel.SetColumnSpan Method

Sets the number of columns spanned by the child control.

Syntax

public void SetColumnSpan (Control control, int value)

Parameters

control
A child control of the System.Windows.Forms.TableLayoutPanel.
value
The number of columns to span.

Remarks

Column spanning is often useful for positioning a control that is considerably wider than its peers.

This method is called by the ColumnSpan property, which the panel adds to its child controls at design time.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0