on 08-24-2004 9:33 AM
Hi,
I would like to delete an element in the tree.
but I was able to delete only the rootNode
Could you help me. thanks
-
IPrivateTreeView.ITreeNodeNode rootNode =
wdContext.nodeTreeNode();
IPrivateTreeView.ITreeNodeElement level2Delete = null;
level2Delete = rootNode.currentTreeNodeElement( );
// I would like to do somethink like that
level2Delete.REMOVE_ELEMENT
Hi Philippe,
it's sooooo easy This is a snipped from the IWDNode API
/**
* Removes an element from the node collection. If an ICMIObservableList is
* bound to the node, this list is modified!
* @param element The element to be removed
* @return <code>true</code> if the element was in.
*/
boolean removeElement(IWDNodeElement element);
so you simply have to call
wdContext.nodeTreeNode().removeElement(level2Delete);
Hope that helps.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.