Home   |   Products   |   Documentation
 

dev net revision
29 July 2008
 

 
 

GotoParentElemIndex Method

void CMarkup::GotoParentElemIndex( int nIndex );

GotoParentElemIndex is only in CMarkup Developer.

GotoParentElemIndex sets the current parent position to the element at the specified index. It clears the main and child positions. See ElemIndex Navigation for the full story on all the ElemIndex methods.

Element indexes can be retrieved with GetElemIndex, GetChildElemIndex and GetParentElemIndex. In addition to GotoParentElemIndex, there are GotoElemIndex and GotoChildElemIndex methods.

The ElemIndex functions provide access to the internal element indexing of CMarkup. Do not attempt to goto an index of an element that may have been deleted. Also, indexes are only valid during the course of the CMarkup object's lifespan unless it is re-initialized (with SetDoc or Load). As elements are added and removed to a CMarkup object, an existing element's index remains valid unless it is removed or replaced.

 
 

Question or comment about this article?

©Copyright 2008 First Objective Software, Inc. All rights reserved.