[Back to home](Home) | [Back to Reference](Reference) | [View raw text](GeneratedDocs/TabItemClosingEventArgs.md) # TabItemClosingEventArgs `class` ## Description Event arguments for the TabClosing event in TabControl. ## Diagram ```mermaid flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph SolidShineUi SolidShineUi.TabItemClosingEventArgs[[TabItemClosingEventArgs]] end ``` ## Members ### Properties #### Public properties | Type | Name | Methods | | --- | --- | --- | | `bool` | [`Cancel`](#cancel)
Get or set if this operation should be cancelled. If `true` , this tab will not be closed and removed from the TabControl. | `get, set` | | [`TabItem`](TabItem) | [`TabItem`](#tabitem)
The TabItem being closed (and removed from the TabControl). | `get` | ## Details ### Summary Event arguments for the TabClosing event in TabControl. ### Constructors #### TabItemClosingEventArgs ```csharp public TabItemClosingEventArgs(TabItem t) ``` ##### Arguments | Type | Name | Description | | --- | --- | --- | | [`TabItem`](TabItem) | t | The tab item being closed. | ##### Summary Create a TabItemClosingEventArgs. ### Properties #### TabItem ```csharp public TabItem TabItem { get; } ``` ##### Summary The TabItem being closed (and removed from the TabControl). #### Cancel ```csharp public bool Cancel { get; set; } ``` ##### Summary Get or set if this operation should be cancelled. If `true` , this tab will not be closed and removed from the TabControl. *Generated with* [*ModularDoc*](https://github.com/hailstorm75/ModularDoc)