ComponentOne Menus and Toolbars for WinForms
DockingTab Overview / DockingTab Appearance and Behavior Properties / Tab Sizing
In This Topic
    Tab Sizing
    In This Topic

    You can customize the width and height of the tab pages by setting its ItemSize to an appropriate value. This will make all the tab pages the same size no matter what the content is inside each tab. Its default settings for its size are based on the size of its text and image. In addition to customizing the height and width of each tab you can also set a mode for the tabs. The TabSizeMode property contains four types of members: FillToEnd, Fit, Normal, and User. The FillToEnd stretches the tabs so they take the whole width of the tab control. The Fit squeezes all tabs so they fit into the width of the tab control. The Normal member gets the default sizing mode. The User member allows the user to specify the tab size in the MeasureTab event. The following table shows the effect of each TabSizeMode member.

    Note: The third image in the following table contains only two tab pages to better illustrate the effect of the FillToEnd member.
    Property Setting Image
    Normal Normal Tab Size Mode
    Fit Fit Tab Size Mode
    FillToEnd Fill to end Tab Size Mode
    User User Tab Size Mode
    See Also