''' <summary>
''' A <b>TabControl</b> designed to display <see cref="WebBrowserTabPage" /> objects.
''' </summary>
''' <remarks></remarks>
Friend Class WebBrowserTabControl
    Inherits System.Windows.Forms.TabControl

    ''' <summary>
    ''' Gets the <see cref="WebBrowserTabPage" /> at a specific index.
    ''' </summary>
    ''' <param name="index">
    ''' The index of the tab page to retrieve.
    ''' </param>
    ''' <value>
    ''' A <b>WebBrowserTabPage</b> that represents the tab page at the specified index.
    ''' If the page at the specified index is not a <b>WebBrowserTabPage</b> the value is <b>Nothing</b>.
    ''' </value>
    <Browsable(False)> _
    Public ReadOnly Property WebBrowserTabPages(ByVal index As Integer) As WebBrowserTabPage
        Get
            Return TryCast(Me.TabPages(index), WebBrowserTabPage)
        End Get
    End Property

    ''' <summary>
    ''' Gets or sets the currently selected tab page.
    ''' </summary>
    ''' <value>
    ''' A <see cref="WebBrowserTabPage" /> that represents the selected tab page.
    ''' If no tab page is selected, or the selected tab page is not a <b>WebBrowserTabPage</b>, the value is a null reference (Nothing in Visual Basic)
    ''' </value>
    ''' <remarks>
    ''' The tab page must be in the <b>TabPages</b> collection to make it the current tab page.
    ''' </remarks>
    <Browsable(False)> _
    Public Shadows Property SelectedTab() As WebBrowserTabPage
        Get
            Return TryCast(MyBase.SelectedTab, WebBrowserTabPage)
        End Get
        Set(ByVal value As WebBrowserTabPage)
            MyBase.SelectedTab = value
        End Set
    End Property

End Class
