从选择集中移除对象
 
 

After you create a selection set, you can work with the object ids of the objects selected. Selection sets do not allow you to add or remove object ids from it, but you can use an ObjectIdCollection object to merge multiple selection sets into a single object to work with. You can add and remove object ids from an ObjectIdCollection object. Use the Remove or RemoveAt methods to remove an object id from an ObjectIdCollection object. For information on merging multiple selection sets and working with an ObjectIdCollection object, see Add To or Merge Multiple Selection Sets.

创建选择集之后,用户可以使用选定对象的 ObjectID 列表。选择集不允许从它里面添加或删除 ObjectID,但可以使用一个 ObjectIDCollection 对象合并多个选择集并将它当作一个对象使用。可以从 ObjectIDCollection 对象上添加和移除 ObjectID。使用 Remove 或 RemoveAt 方法从一个 ObjectIDCollection 对象中移除 ObjectID。关于合并多个选择集与使用 ObjectIDCollection 对象的详细信息,请参见 添加或合并多个选择集