XtraTabControl Class
Displays tabbed pages where you can place your controls.
Namespace: DevExpress.XtraTab
Assembly: DevExpress.XtraEditors.v18.1.dll
Declaration
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "XtraTabControl")]
[SmartTagAction(typeof(XtraTabControlActions), "DockInParentContainer", "Dock in parent container", SmartTagActionType.CloseAfterExecute)]
[SmartTagAction(typeof(XtraTabControlActions), "UndockFromParentContainer", "Undock from parent container", SmartTagActionType.CloseAfterExecute)]
[ToolboxTabName("DX.18.1: Navigation & Layout")]
[SmartTagSupport(typeof(XtraTabControlBoundsProvider), SmartTagSupportAttribute.SmartTagCreationMode.Auto)]
[SmartTagFilter(typeof(XtraTabControlFilter))]
[SmartTagAction(typeof(XtraTabControlActions), "TabPages", "Tab Pages", SmartTagActionType.CloseAfterExecute)]
[SmartTagAction(typeof(XtraTabControlActions), "AddTabPage", "Add Tab Page")]
[SmartTagAction(typeof(XtraTabControlActions), "RemoveTabPage", "Remove Tab Page")]
[SmartTagAction(typeof(XtraTabControlActions), "CustomHeaderButtons", "Custom Header Buttons", SmartTagActionType.CloseAfterExecute)]
public class XtraTabControl :
ControlBase,
ISupportInitialize,
IXtraTab,
IXtraTabProperties,
IXtraTabPropertiesEx,
IToolTipControlClient,
ISupportLookAndFeel,
IDocumentAdapterFactory,
ITabControlAnimationProvider,
ISupportAdornerUIManager,
IWin32Window,
IUpdateAdornerUI
Related API Members
The following members accept/return XtraTabControl objects:
Remarks
XtraTabControl is a container for tab pages, which can display other controls.
Tab pages are stored in the XtraTabControl.TabPages collection. Each page has a tab header, which can be clicked to activate this page. The currently active tab page is specified by the XtraTabControl.SelectedTabPage property.
The following are the main control features:
- Images in page headers (use XtraTabPage.Image or XtraTabPage.ImageIndex property).
- Customizable position and orientation of page headers (see XtraTabControl.HeaderOrientation and XtraTabControl.HeaderLocation properties).
Arranging page headers in multiple rows (see XtraTabControl.MultiLine).
- Close, Next and Prev buttons in the header panel. The Next and Prev buttons enable end-users to scroll through the tab pages when the tab control’s width (height) is insufficient to display all the tab pages simultaneously. To enable and disable certain buttons, use the XtraTabControl.HeaderButtons property. To specify when the tab buttons must be displayed, use the XtraTabControl.HeaderButtonsShowMode property.
- Look And Feel and Skin Support (as in any DevExpress WinForms control) through the XtraTabControl.LookAndFeel property and DefaultLookAndFeel component.
- Additional paint schemes are available with the XtraTabControl.PaintStyleName property.
- Appearance customization, using the XtraTabControl.Appearance and XtraTabControl.AppearancePage properties. Note that specific appearance settings (for instance, the background colors used to paint page headers and client area) are ignored in Skin and WindowsXP painting schemes. To select a painting scheme, use the XtraTabControl.PaintStyleName property, or customize look and feel settings via the DefaultLookAndFeel object or the XtraTabControl.LookAndFeel property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the XtraTabControl class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.