Skip to main content
A newer version of this page is available. .

DXTabControl.TabRemoving Event

Fires before a tab item is removed, and allows you to prevent this action.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public event TabControlTabRemovingEventHandler TabRemoving

Event Data

The TabRemoving event's data class is TabControlTabRemovingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
IsDragDrop
Item Gets the tab item that raised the event. Inherited from TabControlCommonCancelEventArgsBase.
TabIndex Gets the index of the tab that raised the event. Inherited from TabControlCommonCancelEventArgsBase.

Remarks

To prevent a tab item from being removed, set the event’s Cancel parameter to true. After an item has been removed, the DXTabControl.TabRemoved event fires.

See Also