| Visual Basic (Declaration) | |
|---|---|
Public Property AllowClose As CloseMode | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebTab Dim value As CloseMode instance.AllowClose = value value = instance.AllowClose | |
| C# | |
|---|---|
public CloseMode AllowClose {get; set;} | |
By setting this property to True, you can allow your users to to close a Tab item by clicking on a Close button at right end of the Tab control.
When enabled, a Close control will appear at the right end of the Tab control, after the Scroll arrows if AllowScrolling is enabled. When clicked, it will close the currently Active Tab and activate the nearest tab at the right or left side depend on the which is available.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
WebTab ClassWebTab Members