System.Windows.Forms.TableLayoutPanel.GetRowSpan Method

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

Syntax

[System.ComponentModel.DefaultValue(1)]
[System.ComponentModel.DisplayName("RowSpan")]
public int GetRowSpan (Control control)

Parameters

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

Returns

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

Remarks

Row spanning is often useful for positioning a control that is considerably taller than its peers.

This method is called by the RowSpan 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