The GridTabControl is derived from the System.Windows.Forms.Panel class. GridTabControl is a composite control. It contains the object of the GridTabBeam class, which provides the functionality of a sheet-tab control and provides controls that make the tabs.
All the containing controls, including the GridTabBeam, are accessible through the Controls collection of the GridTabControl, but do not access the GridTabBeam directly. Instead, access its functionality through the wrapper functions of the GridTabControl.
The GridTabControl implements an IExtenderProvider interface and provides two extending properties for all its children controls (except the tab beam):
TabLabel—the string property that represents text associated with the specified control. This text is displayed by a tab associated with a control.
TabIdx—the integer property that represents tab's index for the specified Control. All the tabs appear in order of their TabIdx values.
Other properties that determine the GridTabControl behavior are:
SelectedSheet—a control type property. It gets or sets the currently selected tab.
SelectedIndex—an integer property. It gets or sets the index of the currently selected tab.
These two properties are synchronized. If SelectedIndex property is changed to a new value, the SelectedSheet property returns a reference to a corresponding tab Control-derived object.
If any of these properties change the selected tab, the SelectedIndexChanged event occurs.
The GridTabBeam control is also a composite control, but it contains windowless objects: four navigation buttons, which are always present on the tab beam, and a variable number of tab buttons.
Most of the functionality of the GridTabControl is concentrated in the GridTabBeam class. It holds the information about tab indexes and labels, changes the active tab by reacting to the mouse input, and recalculate the size and position of the tabs.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.