GoXam for WPF v3
DeleteParts(IEnumerable<Part>) Method
Northwoods.GoXam Namespace > PartManager Class : DeleteParts(IEnumerable<Part>) Method
a collection of Parts that are in this model
Remove a collection of Parts from this model.
Syntax
public virtual void DeleteParts( 
   IEnumerable<Part> coll
)

Parameters

coll
a collection of Parts that are in this model
Remarks

If the part's CanDelete method returns false, the part's data is not removed from the model.

This just calls Northwoods.GoXam.Model.IDiagramModel.RemoveNode and Northwoods.GoXam.Model.IDiagramModel.RemoveLink (or Northwoods.GoXam.Model.ILinksModel.RemoveLink) as needed.

This does not raise any Diagram events. Call CommandHandler.Delete if you want to delete the current selection with the normal events. (It calls this method.)

See Also

Reference

PartManager Class
PartManager Members
CopyParts Method