循环变量所有的装配组件---查找装配组件必用
循环变量所有的装配组件---查找装配组件必用
public static List<string> reportComponentChildren(Component comp, List<string> componentName)
{
Component[] children;
string cp_name;
children = comp.GetChildren();
for (int ii = 0; ii < children.Length; ii++)
{
cp_name = children.DisplayName;
componentName.Add(cp_name);
reportComponentChildren(children, componentName);
}
return componentName;
}
页:
[1]