TabControl.RowCount Property

 
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.

Gets the number of rows that are currently being displayed in the control's tab strip.

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

[<BrowsableAttribute(false)>]
member RowCount : int with get

Property Value

Type: System.Int32

The number of rows that are currently being displayed in the tab strip.

Use the RowCount property when the Multiline property is true and you want to know the number of rows that the tabs occupy.

The following code example creates a TabControl with five TabPage objects. This example uses the RowCount property to get the number of rows currently in the tabControl1 tab strip.

Use the System.Drawing and System.Windows.Forms namespaces for this example.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: