バージョン

CloseButtonVisibility プロパティ

タブ内の閉じるボタンの表示または非表示を取得または設定します。
シンタックス
'宣言
 
Public Property CloseButtonVisibility As Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility
public Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility CloseButtonVisibility {get; set;}
例外
例外解説
System.ComponentModel.InvalidEnumArgumentException指定された値は、Infragistics.Win.UltraWinTabs.TabCloseButtonVisibility 列挙体で定義されません。
解説

これは所有コントロールの CloseButtonLocation が 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;
参照