DeleteNode method
The DeleteNode method reads the value of the nIndex argument and deletes the corresponding node from the Setup DCO.
Syntax
- VBScript
oSO.DeleteNode(nType as Long, nIndex subscript as Long) as Boolean
- C#
bool DeleteNode(int nType, int nIndex)
Arguments
- nType
- The type of the node to delete:
- 0 = Batch
- 1 = Document
- 2 = Page
- 3 = Field
- 4 = Character
- nIndex
- The index of the node to delete, where 0 is the first node of the specified type.
Returns
Returns true if successful; returns false if unsuccessful.C# example
The following example deletes the third document node (type = 1, index = 2) from the Setup DCO:m_oDCOSetup.DeleteNode(1, 2);