Version

Clone Method (UltraExplorerBarItem)

Creates a copy of the UltraExplorerBarItem.
Syntax
'Declaration
 
Public Function Clone() As UltraExplorerBarItem
public UltraExplorerBarItem Clone()

Return Value

A copy of the UltraExplorerBarItem.
Example
The following code clones the first Item in the first group and adds it to each subsequent group.

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


	Private Sub Button44_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button44.Click

		' Clone the first Item in the first Group and add it to each subsequent Group.
		If (Me.ultraExplorerBar1.Groups.Count > 0 AndAlso Me.ultraExplorerBar1.Groups(0).Items.Count > 0) Then
			Dim i As Integer

			For i = 1 To Me.ultraExplorerBar1.Groups.Count - 1
				Me.ultraExplorerBar1.Groups(i).Items.Add(Me.ultraExplorerBar1.Groups(0).Items(0).Clone())
			Next
		End If

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


		private void button44_Click(object sender, System.EventArgs e)
		{
			// Clone the first Item in the first Group and add it to each subsequent Group.
			if (this.ultraExplorerBar1.Groups.Count				> 0  &&
				this.ultraExplorerBar1.Groups[0].Items.Count	> 0)
			{
				for (int i = 1; i < this.ultraExplorerBar1.Groups.Count; i++)
				{
					this.ultraExplorerBar1.Groups[i].Items.Add(this.ultraExplorerBar1.Groups[0].Items[0].Clone());
				}
			}
		}
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