バージョン

Reposition(UltraExplorerBarGroup) メソッド

UltraExplorerBarItem を新しい UltraExplorerBarGroup に移動し、新しい UltraExplorerBarGroupUltraExplorerBarItem コレクションの末尾(UltraExplorerBarGroupUltraExplorerBarItem が並べ替えられる場合は並べ替え後の適切な位置)に追加します。
シンタックス
'宣言
 
Public Overloads Sub Reposition( _
   ByVal group As UltraExplorerBarGroup _
) 
public void Reposition( 
   UltraExplorerBarGroup group
)

パラメータ

group
項目が再配置されるグループ。
使用例
Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button46_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button46.Click

		' Move the first item in the first group to the second group.
		If (Me.ultraExplorerBar1.Groups.Count > 1 AndAlso Me.ultraExplorerBar1.Groups(0).Items.Count > 0) Then
			Me.ultraExplorerBar1.Groups(0).Items(0).Reposition(Me.ultraExplorerBar1.Groups(1))
		End If


		' Move the first item in the second group after the second item in the second group.
		If (Me.ultraExplorerBar1.Groups.Count > 1 AndAlso Me.ultraExplorerBar1.Groups(1).Items.Count > 1) Then
			Me.ultraExplorerBar1.Groups(1).Items(0).Reposition(Me.ultraExplorerBar1.Groups(1).Items(1), ItemPosition.Next)
		End If

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button46_Click(object sender, System.EventArgs e)
		{
			// Move the first item in the first group to the second group.
			if (this.ultraExplorerBar1.Groups.Count				> 1		&&
				this.ultraExplorerBar1.Groups[0].Items.Count	> 0)
			{
				this.ultraExplorerBar1.Groups[0].Items[0].Reposition(this.ultraExplorerBar1.Groups[1]);
			}


			// Move the first item in the second group after the second item in the second group.
			if (this.ultraExplorerBar1.Groups.Count				> 1		&&
				this.ultraExplorerBar1.Groups[1].Items.Count	> 1)
			{
				this.ultraExplorerBar1.Groups[1].Items[0].Reposition(this.ultraExplorerBar1.Groups[1].Items[1], ItemPosition.Next);
			}
		}
参照