System.Windows.Forms.TableLayoutPanel.GetColumnSpan Method

Returns the number of columns spanned by the specified child control.

Syntax

[System.ComponentModel.DefaultValue(1)]
[System.ComponentModel.DisplayName("ColumnSpan")]
public int GetColumnSpan (Control control)

Parameters

control
A child control of the System.Windows.Forms.TableLayoutPanel.

Returns

The number of columns spanned by the child control. The default is 1.

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