'Declaration Public Property CloseButtonVisibility As Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility
public Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility CloseButtonVisibility {get; set;}
Exception | Description |
---|---|
System.ComponentModel.InvalidEnumArgumentException | The value assigned is not defined in the Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility enumeration. |
This only applies if the CloseButtonLocation of the owning control is set to Tab.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinTabs ' Place close buttons in all the tabs of the tab control. Me.UltraTabControl1.CloseButtonLocation = TabCloseButtonLocation.Tab ' Disable the close button in the first tab. ' This will also prevent middle clicking on the tab from closing it. Me.UltraTabControl1.Tabs(0).AllowClosing = Infragistics.Win.DefaultableBoolean.False ' The second tab's close button should come before the image and text of the tab. Me.UltraTabControl1.Tabs(1).CloseButtonAlignment = TabCloseButtonAlignment.BeforeContent ' The third tab should only display a close button when it is the selected tab. Me.UltraTabControl1.Tabs(2).CloseButtonVisibility = TabCloseButtonVisibility.WhenSelected
using System.Windows.Forms; using Infragistics.Win; using Infragistics.Win.UltraWinTabs; // Place close buttons in all the tabs of the tab control. this.ultraTabControl1.CloseButtonLocation = TabCloseButtonLocation.Tab; // Disable the close button in the first tab. // This will also prevent middle clicking on the tab from closing it. this.ultraTabControl1.Tabs[ 0 ].AllowClosing = DefaultableBoolean.False; // The second tab's close button should come before the image and text of the tab. this.ultraTabControl1.Tabs[ 1 ].CloseButtonAlignment = TabCloseButtonAlignment.BeforeContent; // The third tab should only display a close button when it is the selected tab. this.ultraTabControl1.Tabs[ 2 ].CloseButtonVisibility = TabCloseButtonVisibility.WhenSelected;
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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