Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Returns the depth within the document tree at which the specified node appears.
Syntax
HRESULT depth( IDOMNode * pNode, long * pDepth);
Parameters
- pNode
- [in] Node for which the depth is to be returned.
- pDepth
- [out] Depth within the document tree at which the specified node appears. The documentElement, or root node, returns the value 0; its children return the value 1, and so on.
Return Value
Returns S_OK if successful, or an error code otherwise.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.