Deletes an item from the tree (and from the terrain, if that item was a terrain object such as a polyline).
HRESULT DeleteItem (
[in] long ItemID)
Parameters:
ItemID – The ID of the item to be deleted.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |
TE_E_MPTNOTLOADED |
An MPT file must be loaded in TerraExplorer for this method to work. |
TE_E_NOLICENSE |
You are running TerraExplorer Viewer and therefore do not have permission to work with this interface. |
Remarks:
If ItemID is actually a group, all of the items under that group are also deleted.