Skip to content

TabControl Control Members

See Also

TabControl Overview

See Also


TabControl Control Members

Public Methods

Method Description
Public MethodAboutBox Displays the about box for the control.
Public MethodGetClientRect Returns the tab client area bounding coordinates.
Public MethodHitTest Returns the TabControl that the user clicked. This can be helpful when determining where the user clicked in the TabControl.
Public MethodInsertItem Inserts a new TabControlItem (tab) into the TabControl.
Public MethodItem Gets a TabControl item by index.
Public MethodRemoveAll Removes all TabControlItem(s) from the TabControl.
Public MethodRemoveItem Removes a specific TabControlItem from the TabControl.
Public MethodSetImageList Assigns an ImageList to the TabControl. The images in the ImageList are used to display icons in the tab buttons of the tab control.
Public MethodShowNavigateButton Used to specify if and when a specific tab navigation button is displayed in the tab control header.

Public Properties

Property Description
Public PropertyAllowReorder Enables/Disables tab reordering. When True, the tabs can be reordered.
Public PropertyAppearance Gets/Sets the appearance of the tabs.
Public PropertyAutoResizeClient Specifies whether the TabControl automatically positions and resizes controls in the tab client area when they are attached to a tab.
Public PropertyClientHeight Height of Client Area.
Public PropertyClientLeft Left of Tab Client Area.
Public PropertyClientTop Top of Tab Client Area.
Public PropertyClientWidth Width of Client Area.
Public PropertyColor Gets/Sets the color style of the tabs.
Public PropertyDrawFocusRect Gets/Sets whether a focus rectangle is drawn around the text caption of a tab button when the tab has focus.
Public PropertyEnabled Gets/Sets a Boolean value indicating whether the TabControl is enabled/disabled.
Public PropertyEnableMarkup Allows the use of a XAML snippet to be used for the control.
Public PropertyFont Gets/Sets the font that will be used to display the text for the control.
Public PropertyHeaderScrollOffset Gets or sets the scroll offset of the tab buttons in the tab header. This is how much the tabs have been scrolled by pressing the left "<" and right ">" tab navigation buttons.
Public PropertyhWnd The Handle of the TabControl object.
Public PropertyIcons The Icons property is a collection of icons that can be used in TabControlItem objects.
Public PropertyItemCount Gets/Sets the total number of TabControlItem(s) (tabs) in the TabControl.
Public PropertyOLEDropMode Returns or sets how a target component handles drop operations.
Public PropertyPaintManager The tab paint manager is used to customize the appearance of your tabs.
Public PropertyReCreateReparented Gets/Sets whether the TabControl elements are aligned to support locales using right-to-left fonts.
Public PropertyRightToLeft Gets/Sets a value indicating whether the TabControl elements are aligned to support locales using right-to-left fonts.
Public PropertySelected Gets/Sets the currently selected tab in the tab control. A tab is selected when it has been clicked or has focus.
Public PropertySelectedItem Gets/Sets the currently selected TabControlItem.
Public PropertyShowCloseItemButton Specifies whether to show a close button on each individual tab button.
Public PropertyToolTipContext Represents the tool tip window that is used to display tool tips.

Events

Event Description
Public EventBeforeItemClick Occurs when a tab button is clicked, but before the click message is processed by the TabControl.
Public EventItemDblClick Occurs when a tab button is double-clicked.
Public EventItemOrderChanged Occurs when the tab button order has changed.
Public EventMouseMove Occurs when the mouse cursor is moved over any part of the TabControl.
Public EventMouseUp Occurs when the tab buttons or the area surrounding the tab buttons (not including the object attached to the tab) has a mouse click that is released. This event is not triggered on single left mouse clicks. This event is triggered on all mouse button clicks except the above noted, and it is triggered on a left button double-click.
Public EventNavigateButtonClick Occurs when a tab navigation button is clicked.
Public EventOLEDragDrop Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur.
Public EventOLEDragOver Occurs when one component is dragged over another.
Public EventReCreated Occurs when a new TabControl is created.
Public EventSelectedChanged Occurs when a different TabControlItem is selected in the TabControl.

See Also

TabControl Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.