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_XYDATASET
returns the diagram handle OBJ_LAYER
.OBJ_XYZDATASET
returns the diagram handle OBJ_LAYER
.OBJ_TEXT
returns the diagram handle OBJ_LAYER
.OBJ_RECT
returns the diagram handle OBJ_LAYER
.OBJ_ELLIPSE
returns the diagram handle OBJ_LAYER
.OBJ_LINE
returns the diagram handle OBJ_LAYER
.OBJ_LINK
returns the diagram handle OBJ_LAYER
.OBJ_OLEITEM
returns the diagram handle OBJ_LAYER
.OBJ_LAYER
returns the page handle OBJ_PAGE
.OBJ_PAGE
returns the document handle OBJ_DOCUMENT
.
Comment
The function returns 0 for all other objects.
See also
id-472654