TE Edit Control Win32 / Win64 Help
Product page

TerGetTablePos

Get the current table position.

int TerGetTablePos(hWnd, TableNo, RowNo, ColNo)
int TerGetTablePos2(hWnd, TableNo, RowNo, ColNo, ParentCell)
HWND hWnd;The handle of the window to be accessed
LPINT TableNo;The location to receive the current table number. The tables are assigned a sequential number starting with 0 from the beginning of the document.
LPINT RowNo;The location to receive the current table row number. The table rows are assigned a sequential number starting with 0 from the beginning of the current table.
LPINT ColNo;The location to receive the current table column number. The table columns are assigned a sequential number starting with 0 from the beginning of the current table row.
int ParentCell;The parent cell id to locate a nested table. Set to 0 for default.

Return Value: This function returns TRUE when successful. It returns a FALSE value if the cursor is not positioned inside a table.