小妹,跪求各位大侠
RibbonItem ri0 = new RibbonItem {Text="90",};RibbonItem ri1= new RibbonItem { Text = "-90", };
RibbonItem ri2 = new RibbonItem { Text = "180", };
RibbonItem ri3 = new RibbonItem { Text = "-180", };
RibbonCombo rc = new RibbonCombo
{
ShowImage = true,
Image = imageSource(Res.xz),
LargeImage = imageSource(Res.xz),
Size = RibbonItemSize.Standard,
Width = 6,
};
rc.Items.Add(ri0);
rc.Items.Add(ri1);
rc.Items.Add(ri2);
rc.Items.Add(ri3);
row1.Items.Add(rc);
ribSource2.Items.Add(row1);
上面的代码就实现了RibbonCombo,下拉列表里有90,-90,180,-180四个值,怎么现实获取下拉列表中的值
你可以把rc声明为类的公共变量 雪山飞狐_lzh 发表于 2015-6-15 17:18 static/image/common/back.gif
你可以把rc声明为类的公共变量
飞狐大哥:
我试过把RC声明为类的公共变量,但求RC里的值,具体怎么写啊,我试了好多方法,都不对啊
页:
[1]