111,119
社区成员
发帖
与我相关
我的任务
分享 public void notifySelection(ref IvcSelection Selection, int SelectionTypeChange)
{
if (Selection.ItemCount == 0)
{
return;
}
if (Selection.ItemCount >= 1)
{
for (int i = 0; i < Selection.ItemCount; i++)
{
comp = (IvcComponent)Selection.getItem(i);
for (int a = 0; a < comp.PropertyCount; a++)
{
string propName = comp.getPropertyName(a);
object propValue = comp.getProperty(propName);
BeginInvoke(new myDelegate(UpdateTextBox), propName + "::" + propValue);
}
}
}
}
[/quote]
你要么notifySelection()这个函数不给参数,要么就给这两个参数赋值。你直接使用这两个参数,人家不知道这两个参数是什么鬼。