Version

Insert(Int32,UltraExplorerBarGroup) Method

Inserts the specified UltraExplorerBarGroup into the collection at the specified index.
Syntax
'Declaration
 
Public Overloads Sub Insert( _
   ByVal index As Integer, _
   ByVal group As UltraExplorerBarGroup _
) 
public void Insert( 
   int index,
   UltraExplorerBarGroup group
)

Parameters

index
The index at which to insert the new group.
group
The UltraExplorerBarGroup to insert into the collection.
Example
The following code shows how to use the various overloads of the Groups colllection Insert Method.

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");
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also