GetParentΒΆ
GetParent returns the handle of the parent object.
- hParent = GetParent(handle)
Return Value
hParent is the handle of the parent object. If the object does not have a parent, the functions returns 0.
Parameters
- handle
handle is the handle of the object. List of parents:
Value
Meaning
OBJ_XYDATASETreturns the diagram handle
OBJ_LAYER.OBJ_XYZDATASETreturns the diagram handle
OBJ_LAYER.OBJ_TEXTreturns the diagram handle
OBJ_LAYER.OBJ_RECTreturns the diagram handle
OBJ_LAYER.OBJ_ELLIPSEreturns the diagram handle
OBJ_LAYER.OBJ_LINEreturns the diagram handle
OBJ_LAYER.OBJ_LINKreturns the diagram handle
OBJ_LAYER.OBJ_OLEITEMreturns the diagram handle
OBJ_LAYER.OBJ_LAYERreturns the page handle
OBJ_PAGE.OBJ_PAGEreturns the document handle
OBJ_DOCUMENT.
Comment
The function returns 0 for all other objects.
See also
id-472654