| Visual Basic (Declaration) | |
|---|---|
Public Property AllowClosing As DefaultableBoolean | |
| C# | |
|---|---|
public DefaultableBoolean AllowClosing {get; set;} | |
| Exception | Description |
|---|---|
| InvalidEnumArgumentException | The value assigned is not defined in the DefaultableBoolean enumeration. |
If this property is Default, the value of UltraTabControlBase.AllowTabClosing will be used to determine if the tab can close.
The following code demonstrates how to control the behavior of a close button within a tab.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win | |
| C# | Copy Code |
|---|---|
using System.Windows.Forms; | |
