API referenceReporting

tblDeleteRows

Append one or many blank rows (each cell auto-initialized

C
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);
Delphi
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.

ParameterDescription
TableTarget table handle.
HeightNew 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)

wrappers/dotnet/LumasPdf.cs
public static extern void tblDeleteRows(IntPtr Table);
Area
Reporting
Category

Misc

Exported names

tblDeleteRows

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.