バージョン

CloseButtonLocation プロパティ (MdiTabGroupSettings)

タブ グループ内の閉じるボタンの位置を取得または設定します。
シンタックス
'宣言
 
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 button in the header area of the tab control.
Me.UltraTabbedMdiManager1.TabGroupSettings.CloseButtonLocation = TabCloseButtonLocation.HeaderArea

' Turn off themes so the appearance of the close buttons can be modified
Me.UltraTabbedMdiManager1.UseOsThemes = DefaultableBoolean.False

' Set the appearance of the close button in the normal state
Me.UltraTabbedMdiManager1.TabGroupSettings.CloseButtonAppearance.BackColor = Color.White

' Set the appearance of the close button when the mouse is over it
Me.UltraTabbedMdiManager1.TabGroupSettings.HotTrackCloseButtonAppearance.BackColor = Color.Red

' Set the appearance of the close button when it is pressed
Me.UltraTabbedMdiManager1.TabGroupSettings.PressedCloseButtonAppearance.BackColor = Color.Blue
using System.Windows.Forms;
using Infragistics.Win;
using Infragistics.Win.UltraWinTabs;

// Place close button in the header area of the tab control.
this.ultraTabbedMdiManager1.TabGroupSettings.CloseButtonLocation = TabCloseButtonLocation.HeaderArea;

// Turn off themes so the appearance of the close buttons can be modified
this.ultraTabbedMdiManager1.UseOsThemes = DefaultableBoolean.False;

// Set the appearance of the close button in the normal state
this.ultraTabbedMdiManager1.TabGroupSettings.CloseButtonAppearance.BackColor = Color.White;

// Set the appearance of the close button when the mouse is over it
this.ultraTabbedMdiManager1.TabGroupSettings.HotTrackCloseButtonAppearance.BackColor = Color.Red;

// Set the appearance of the close button when it is pressed
this.ultraTabbedMdiManager1.TabGroupSettings.PressedCloseButtonAppearance.BackColor = Color.Blue;
参照