バージョン

Clone メソッド (UltraExplorerBarItem)

UltraExplorerBarItemのコピーを作成します。
シンタックス
'宣言
 
Public Function Clone() As UltraExplorerBarItem
public UltraExplorerBarItem Clone()

戻り値の型

UltraExplorerBarItemのコピー。
使用例
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());
				}
			}
		}
参照