バージョン

CloseButtonLocation プロパティ

コントロールの閉じるボタンの位置を取得または設定します。
シンタックス
'宣言
 
Public Property CloseButtonLocation As Infragistics.Win.UltraWinTabs.TabCloseButtonLocation
public Infragistics.Win.UltraWinTabs.TabCloseButtonLocation CloseButtonLocation {get; set;}
例外
例外解説
System.ComponentModel.InvalidEnumArgumentException指定された値は、Infragistics.Win.UltraWinTabs.TabCloseButtonLocation 列挙体で定義されません。
解説

このプロパティを None に設定すると、中央のマウス ボタンをクリックしてもタブを閉じません。

使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTabs

' Place close buttons in all the tabs of the tab control.
Me.UltraTabControl1.CloseButtonLocation = TabCloseButtonLocation.Tab

' The close button in all tabs should be disabled as well as the ability to middle click and close the tab
' unless that tab has overriden the setting by having a non-default AllowClosing.
Me.UltraTabControl1.AllowTabClosing = False

' The close button in all tabs should come before the image and text of the tab 
' unless that tab has overriden the setting by having a non-default CloseButtonAlignment.
Me.UltraTabControl1.TabCloseButtonAlignment = TabCloseButtonAlignment.BeforeContent

' All tabs should only display the clos ebutton when they are selected or when the mouse is over them
' unless that tab has overriden the setting by having a non-default CloseButtonVisibility.
' For the close button to show when the tab is hot tracked, UseHotTracking must be True.
Me.UltraTabControl1.TabCloseButtonVisibility = TabCloseButtonVisibility.WhenSelectedOrHotTracked
Me.UltraTabControl1.UseHotTracking = DefaultableBoolean.True
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;

// The close button in all tabs should be disabled as well as the ability to middle click and close the tab
// unless that tab has overriden the setting by having a non-default AllowClosing.
this.ultraTabControl1.AllowTabClosing = false;

// The close button in all tabs should come before the image and text of the tab 
// unless that tab has overriden the setting by having a non-default CloseButtonAlignment.
this.ultraTabControl1.TabCloseButtonAlignment = TabCloseButtonAlignment.BeforeContent;

// All tabs should only display the clos ebutton when they are selected or when the mouse is over them
// unless that tab has overriden the setting by having a non-default CloseButtonVisibility.
// For the close button to show when the tab is hot tracked, UseHotTracking must be True.
this.ultraTabControl1.TabCloseButtonVisibility = TabCloseButtonVisibility.WhenSelectedOrHotTracked;
this.ultraTabControl1.UseHotTracking = DefaultableBoolean.True;
参照