Version

RemoveAt(Int32) Method

Removes a UltraExplorerBarGroup from the collection via index.
Syntax
'Declaration
 
Public Overloads Sub RemoveAt( _
   ByVal index As Integer _
) 
public void RemoveAt( 
   int index
)

Parameters

index
Example
The following code shows how to remove groups using the Remove and RemoveAt methods of the Groups colllection.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button85_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button85.Click

		' Remove groups from the Groups collection using the different overloads.


		' Can't proceed unless we have at least 1 group.
		If (Me.ultraExplorerBar1.Groups.Count < 1) Then
			Return
		End If


		' Groups.Remove(UltraExplorerBarItem item)
		Dim group As UltraExplorerBarGroup = Me.ultraExplorerBar1.Groups(0)
		Me.ultraExplorerBar1.Groups.Remove(group)


		' Groups.RemoveAt(int index)
		If (Me.ultraExplorerBar1.Groups.Count > 0) Then
			Me.ultraExplorerBar1.Groups.RemoveAt(0)
		End If

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


		private void button85_Click(object sender, System.EventArgs e)
		{
			// Remove groups from the Groups collection using the different overloads.


			// Can't proceed unless we have at least 1 group.
			if (this.ultraExplorerBar1.Groups.Count < 1)
				return;


			// Groups.Remove(UltraExplorerBarItem item)
			UltraExplorerBarGroup group = this.ultraExplorerBar1.Groups[0];
			this.ultraExplorerBar1.Groups.Remove(group);


			// Groups.RemoveAt(int index)
			if (this.ultraExplorerBar1.Groups.Count > 0)
				this.ultraExplorerBar1.Groups.RemoveAt(0);
		}
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