TabBase Methods

Overview | This Package | All Packages

TabBase Methods

Constructors Description
TabBase Creates a TabBase object, usually as the base class for a TabStrip or TabControl control.

Methods Description
addOnDrawItem Assigns a delegate to the drawItem event.

addOnSelectedIndexChanged Assigns a delegate to the selectedIndexChanged event.

getAlignment Retrieves a value indicating where the tabs are located in the container control.

getAppearance Retrieves a value indicating whether the tabs in this control have the appearance of standard tabs, three-dimensional buttons, or flat buttons.

getDisplayRect Retrieves the rectangle that represents the display area of the control (the area not used to draw the tabs).

getDrawMode Retrieves a value indicating whether the system draws the tabs or whether the parent control draws the tabs.

getHotTrack Retrieves a boolean value indicating whether tabs are highlighted as the mouse pointer passes over them.

getImageList Retrieves the image list control associated with this control.

getItemSize Retrieves the height of all tabs and retrieves the width of tabs in a fixed-width (sizeMode set to TabSizeMode.FIXED) or owner-drawn (drawMode set to TabDrawMode.OWNERDRAWFIXED) control.

getMultiline Retrieves a boolean value indicating whether multiple rows of tabs can be displayed to allow all tabs to be visible at one time.

getPadding Retrieves the amount of horizontal and vertical space (padding) around the text and image displayed on the tabs in this control.

getRowCount Retrieves the number of rows of tabs displayed in the control.

getSelectedIndex Retrieves the index of the selected tab in this control.

getShowToolTips Retrieves a boolean value indicating whether to display ToolTips for tabs that have ToolTip text associated with them.

getSizeMode Retrieves a value indicating whether the size of each tab in this control is adjusted to what is displayed on the tab, whether the sizes of the tabs are adjusted so that each row of tabs fills the entire width of this control, or whether all tabs are assigned the same fixed width.

getTabCount Retrieves the number of tabs contained in this control.

getTabRect Retrieves the bounding rectangle for the specified tab in this control.

onDrawItem Triggers the drawItem event.

onSelectedIndexChanged Triggers the selectedIndexChanged event.

removeAll Removes all tabs from this control.

removeOnDrawItem Removes the delegate that is assigned to the drawItem event.

removeOnSelectedIndexChanged Removes the delegate that is assigned to the selectedIndexChanged event.

setAlignment Sets a value indicating where the tabs are located in the container control.

setAppearance Sets a value indicating whether the tabs in this control have the appearance of standard tabs, three-dimensional buttons, or flat buttons.

setDisplayRectSize Sets the size the display rectangle for this control.

setDrawMode Sets a value indicating whether the system draws the tabs or whether the parent control draws the tabs.

setHotTrack Sets a boolean value indicating whether tabs are highlighted as the mouse pointer passes over them.

setImageList Sets the image list control associated with this control.

setItemSize Sets the height of tabs; sets the width of tabs in a fixed-width (sizeMode set to TabSizeMode.FIXED) or owner-drawn (drawMode set to TabDrawMode.OWNERDRAWFIXED) control.

setMultiline Sets a boolean value indicating whether multiple rows of tabs can be displayed to allow all tabs to be visible at one time.

setPadding Sets the amount of horizontal and vertical space (padding) around the text and image displayed on the tabs in this control.

setSelectedIndex Selects the specified tab.

setShowToolTips Sets a boolean value indicating whether to display ToolTips for tabs that have ToolTip text associated with them.

setSizeMode Sets a value indicating whether the size of each tab in this control is adjusted to what is displayed on the tab, whether the sizes of the tabs are adjusted so that each row of tabs fills the entire width of this control, or whether all tabs are assigned the same, fixed width.