摘要:
Autodesk.AutoCAD.ApplicationServices.Application 支持两种 ContextMenu 扩展:DefaultContextMenu 和 ObjectContextMenu。 DefaultContextMenu:当前上下文环境没有选中任何 Entity 情 阅读全文
摘要:
交集 使用C 语言提供的 方法快速来实现两个集合之间的交集运算。 Intersect方法调用的格式为: 格式:List1.Intersect(List2) 参数:List1和List2是相同类型的List集合数据 返回:IENUMABLE类型,可再使用ToList()方法转换回List集合类型数据。 阅读全文
摘要:
创建List类具体实例: 1. 创建一个普通的泛型集合类: List mList = new List(); T为列表中元素类型,现在以string类型作为例子 List mList = new List(); 2. 以一个集合作为参数创建新的泛型集合List List testList =new 阅读全文