JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the TabPage Class

As discussed in the In Depth section of this chapter, you use tab pages in tab controls. Tab pages are descended from Panel controls, so, as you'd expect, they can contain other controls (and that's the whole point). Here is the class hierarchy of TabPage:

Object
   MarshalByRefObject
      Component
         Control
            ScrollableControl
               Panel
                  TabPage

You can find the notable public properties of TabPage objects in Table 10.24. Note that I'm omitting the properties, methods, and events tab pages inherit from the Control class, which you can find in Chapter 5, Tables 5.1, 5.2, and 5.3, and the properties they inherit from Panel controls, which you can find in Chapter 6, Table 6.8.

Table 10.24: Noteworthy public properties of TabPage objects.

Property

Means

ImageIndex

Gets/sets the index of the image in this tab.

Text

Gets/sets the text to show in the tab.

ToolTipText

Gets/sets the tab's tool tip text.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor