This method sets TerraExplorer to editing mode for the item. Advanced edit options are available through the Flags parameter.
HRESULT EditItemEx(
[in] long ItemID,
[in] EditItemFlags Flags,
[in] VARIANT ParentWindow)
Parameters:
ItemID – The IDof the item to edit.
Flags – An enum that determines edit action behaviour. The following are its enumerations:
EDIT_ITEM_USE_PROPERTY = 0
Opens the edit properties sheet.
EDIT_ITEM = 1
Sets the edit mode without the properties sheet.
EDIT_ITEM_VERTICES = 2
Opens the edit properties sheet and sets the vertices edit
mode.
EDIT_ITEM_BUILDING_ROOF = 3
Opens the edit properties sheet and sets the building roof edit
mode.
ParentWindow – Reserved always pass 0 (zero). Currently not used.
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_NOLICENSE |
You are running TerraExplorer Viewer and therefore do not have permission to work with this interface. |
E_INVALIDARG |
The ItemID is not a valid InformationTree ID |