int32_t __stdcall tblAddRow(ITBL Table, float Height);
int32_t __stdcall tblAddRows(ITBL Table, uint32_t Count, float Height);
void __stdcall tblDeleteRow(ITBL Table, uint32_t Row);
void __stdcall tblDeleteRows(ITBL Table);
function tblAddRow(const Table: ITBL; Height: Single): Integer; stdcall;
function tblAddRows(const Table: ITBL; Count: Cardinal; Height: Single): Integer; stdcall;
procedure tblDeleteRow(const Table: ITBL; Row: Cardinal); stdcall;
procedure tblDeleteRows(const Table: ITBL); stdcall;
Purpose. Append one or many blank rows (each cell auto-initialized to a zeroed TTableCell), or remove a specific row / all rows.
Description. All real. Height ≤ 0 falls back to the table's DefRowHeight (set at tblCreateTable time). tblAddRows calls AddRow in a loop, Count times, all with the same Height — there is no per-row height variation in one call. tblDeleteRow is a real TList.Delete on both the row-cells list and the parallel row-height list (kept in sync). tblDeleteRows clears both lists entirely (Rows.Clear/RowH.Clear) — the column count/widths are untouched, so the table remains usable for adding fresh rows with the same column layout afterward.
Parameters.
| Parameter | Description |
|---|---|
Table | Target table handle. |
Height | New row height; ≤ 0 uses the table's default. |
Count | *(AddRows only)* Number of identical-height rows to append. |
Row | *(DeleteRow only)* 0-based row index to remove. |
Return value. tblAddRow: the new row's 0-based index. tblAddRows: the index of the first newly-added row (not the count added). tblDeleteRow/tblDeleteRows: none.
C# (P/Invoke)
public static extern void tblDeleteRow(IntPtr Table, uint Row);
Misc
tblDeleteRow
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.