IDisposableTree.Suspend() ***OBSOLETE*** Use 'Transaction' instead.
Prevents the tree from being updated.
Remarks
This method should be called before adding/removing objects to prevent multiple redraws.
It should be used in association with a using/with block to ensure the Resume controller method to be called.
Indeed, the Dispose method of controller automatically calls the Resume method.
Examples
The following example add 10 comments below "Model" in one shot (without refreshing the tree for every add).
with(ExtAPI.DataModel.Tree.Suspend()):
for i in range(10):
ExtAPI.DataModel.Project.Model.AddComment()
Note: In C# one must use the "using" statement instead of "with"