InsertRow Method

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

Applies to

IWPTextCursor

Declaration

function InsertRow(Before: WordBool): WordBool;

Description

Insert a row after the current row. With parameter "Before"=true the row will be inserted before the current.

The text in the row is not duplicated unless the mode DuplicateWithText has been activated using Memo.SetBProp(18,1);

Tip: A table row can also be duplicated using the CurrPar interface. Here we first let the CurrPar interface modify the current row and then call Duplicate():

Cursor.CPTableRowNr = 1// goto row 1

Memo.CurrPar.SetPtr( Cursor.CPRowPtr );

while(rowcount-->0) Memo.CurrPar.Duplicate();

 

 

To delete the current row use the Action:

 

TD.wpaProcess("DelRow")

 

 


[idh_iwptextcursor_insertrow.htm]    Copyright © 2007 by WPCubed GmbH