public Row DeleteRow( int tableIndex, int rowIndex )
Public Function DeleteRow ( tableIndex As Integer, rowIndex As Integer ) As Row
public: Row^ DeleteRow( int tableIndex, int rowIndex )
member DeleteRow : tableIndex : int * rowIndex : int -> Row
If the cursor is inside the row that is being deleted, the cursor is moved out to the next row or to the next paragraph after the table.
If you delete a row from a table that contains only one row, the whole table is deleted.
For the index parameters, when index is greater than or equal to 0, it specifies an index from the beginning with 0 being the first element. When index is less than 0, it specified an index from the end with -1 being the last element.
Document doc = new Document(MyDir + "DocumentBuilder.DocWithTable.doc"); DocumentBuilder builder = new DocumentBuilder(doc); // Delete the first row of the first table in the document. builder.DeleteRow(0, 0);