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
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