求具体item的Text值
这是一个LISTBAR控件.以下是里面具体内容的代码:private void InitializeComponent()
{
Infragistics.Win.UltraWinListBar.Group group1 = new Infragistics.Win.UltraWinListBar.Group(true);
Infragistics.Win.UltraWinListBar.Item item1 = new Infragistics.Win.UltraWinListBar.Item();
Infragistics.Win.UltraWinListBar.Item item2 = new Infragistics.Win.UltraWinListBar.Item();
item1.Text = " ListItem1";
item2.Text = "ListItem2";
group1.Items.Add(item1);
group1.Items.Add(item2);
group1.Text = "Group";
this.ultraListBar1.Groups.Add(group1);
this.ultraListBar1.Location = new System.Drawing.Point(296, 208);
this.ultraListBar1.Name = "ultraListBar1";
this.ultraListBar1.Size = new System.Drawing.Size(144, 200);
this.ultraListBar1.DoubleClick += new System.EventHandler(this.ultraListBar1_DoubleClick);
}
现在有一个双击事件,想得到里面的具体的item的Text值.
private void ultraListBar1_DoubleClick(object sender, System.EventArgs e)
{}
但不知道该怎么写.