Lowlevel Paragraph IDs Category

[Top]  [Chapter]  [Previous]  [Next]

Paragraph IDs can be used to change "current" paragraph

Description

 

When working with the IWPParInterface, Paragraph IDs make it possible to switch between Next, Previous, Children and Parent Paragraphs.

 

So you can actually use the property CurrPar to access, evaluate and modify all paragraph in the internal XML like paragraph tree.

 

par_tree_ptr

Get ID:

IWPParInterface.GetPtr

Set ID:

IWPParInterface.SetPtr

 

a) previous in list (i.e. previous paragraph, cell to the left)

IWPParInterface.GetPtrPrev

 

b) first child or 0 (i.e. first cell in table row, first row in table, second paragraph in cell)

IWPParInterface.GetPtrChild

 

c) parent or 0 (i.e parent row of cell, parent table of row)

IWPParInterface.GetPtrParent

 

d) next in list (i.e. next paragraph, cell to the right)

IWPParInterface.GetPtrNext

 

Please do not save the Ptr value to be used at a later time in the application. This can cause severe problems when the paragraph was deleted.

 

Please also see the low level move methods - they provide a save way to loop all paragraphs in the current document or text block.


[idh_cat_paragraphids.htm]    Copyright © 2007 by WPCubed GmbH