•Search
类
Search s = new Search();
ModelItemCollection searchResults = s.FindAll(false);
•遍历
foreach (ModelItem item in Application.ActiveDocument.CurrentSelection.SelectedItems)
{
}
•LINQ
IEnumerable<ModelItem> items =
from item in
Application.ActiveDocument.Models.GetRootItems().DescendantsAndSelf
where ItemPrice(item) > 100
select item;