バージョン

Insert(Int32) メソッド

UltraExplorerBarGroup を作成し、指定したインデックスでコレクションに挿入します。
シンタックス
'宣言
 
Public Overloads Function Insert( _
   ByVal index As Integer _
) As UltraExplorerBarGroup
public UltraExplorerBarGroup Insert( 
   int index
)

パラメータ

index
新しいグループを挿入するインデックス。

戻り値の型

新規で作成されたグループ。
使用例
Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button84_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button84.Click

		' Insert groups into the Groups collection using the different overloads.


		' Groups.Insert(int index)
		Dim group As UltraExplorerBarGroup = Me.ultraExplorerBar1.Groups.Insert(0)
		group.Text = "FirstGroupAdded"


		' Groups.Insert(int index, UltraExplorerBarGroup group)
		group = New UltraExplorerBarGroup("SecondGroupKey")
		group.Text = "SecondGroupAdded"

		Me.ultraExplorerBar1.Groups.Insert(0, group)


		' Groups.Insert(string Key, string Text)
		group = Me.ultraExplorerBar1.Groups.Insert(0, "ThirdGroupKey", "ThirdGroup")


		' Groups.Insert(string Key)
		group = Me.ultraExplorerBar1.Groups.Insert(0, "FourthGroupKey")

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


		private void button84_Click(object sender, System.EventArgs e)
		{
			// Insert groups into the Groups collection using the different overloads.


			// Groups.Insert(int index)
			UltraExplorerBarGroup group = this.ultraExplorerBar1.Groups.Insert(0);
			group.Text = "FirstGroupAdded";


			// Groups.Insert(int index, UltraExplorerBarGroup group)
			group		= new UltraExplorerBarGroup("SecondGroupKey");
			group.Text	= "SecondGroupAdded";

			this.ultraExplorerBar1.Groups.Insert(0, group);


			// Groups.Insert(string Key, string Text)
			group = this.ultraExplorerBar1.Groups.Insert(0, "ThirdGroupKey", "ThirdGroup");


			// Groups.Insert(string Key)
			group = this.ultraExplorerBar1.Groups.Insert(0, "FourthGroupKey");
		}
参照