Back to Devexpress

LayoutControl.TabPageCloseButtonClick Event

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrol-c4000765.md

latest2.2 KB
Original Source

LayoutControl.TabPageCloseButtonClick Event

Fires when a Close button within a tab page is clicked.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event LayoutGroupEventHandler TabPageCloseButtonClick
vb
<DXCategory("Events")>
Public Event TabPageCloseButtonClick As LayoutGroupEventHandler

Event Data

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

PropertyDescription
GroupGets the group currently being processed.

Remarks

Groups combined into a TabbedGroup are represented as tab pages. In this instance, they can contain Close buttons within page headers. By default, clicking these buttons has no effect, but only fires the TabPageCloseButtonClick event. Handle this event to respond to clicking these buttons. For instance, you can hide the clicked page when its Close button is clicked using the LayoutControlGroup.HideToCustomization method.

To display a Close button within a tab page header, set the LayoutGroup.ShowTabPageCloseButton property to true.

See Also

ShowTabPageCloseButton

LayoutControl Class

LayoutControl Members

DevExpress.XtraLayout Namespace