CustomHeaderButton Class

A custom header button for tab controls.

Namespace: DevExpress.XtraTab.Buttons

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public class CustomHeaderButton :
    EditorButton
Public Class CustomHeaderButton
    Inherits EditorButton

Remarks

You can add custom header buttons to an XtraTabControl and to a DocumentGroup (within a DocumentManager). The XtraTabControl.CustomHeaderButtons property allows you to add CustomHeaderButton objects to an XtraTabControl. Use the IDocumentGroupProperties.CustomHeaderButtons property to add CustomHeaderButton objects to a DocumentGroup.

Custom Header Buttons

A custom button is a CustomHeaderButton object that provides a number of settings that specify the button's glyph, caption, etc.

Custom Header Button Properties

You can implement custom actions for an XtraTabControl's custom header buttons via the XtraTabControl.CustomHeaderButtonClick event. To realize custom actions for a DocumentGroup, use the TabbedView.CustomHeaderButtonClick event. These events provide a Button parameter that can be used to identify the currently clicked button.

Examples

The example demonstrates how to add two custom header buttons to the CustomHeaderButton collection.

using DevExpress.XtraTab.Buttons;
using DevExpress.XtraEditors.Controls;

xtraTabControl1.CustomHeaderButtons.Add(new CustomHeaderButton(ButtonPredefines.Combo));
xtraTabControl1.CustomHeaderButtons.Add(new CustomHeaderButton(ButtonPredefines.Right));

Inheritance

Object
EditorButton
CustomHeaderButton
See Also