'Declaration Public Function Clone() As UltraExplorerBarItem
public UltraExplorerBarItem Clone()
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()); } } }
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