API referenceReporting

tblClearRow

Nominally: selectively clear a row's, column's, or the

C
void __stdcall tblClearRow(ITBL Table, uint32_t Row, TDeleteContent Types);
void __stdcall tblClearColumn(ITBL Table, uint32_t Col, TDeleteContent Types);
void __stdcall tblClearContent(ITBL Table, TDeleteContent Types);
Delphi
procedure tblClearRow(const Table: ITBL; Row: Cardinal; Types: TDeleteContent); stdcall;
procedure tblClearColumn(const Table: ITBL; Col: Cardinal; Types: TDeleteContent); stdcall;
procedure tblClearContent(const Table: ITBL; Types: TDeleteContent); stdcall;

Purpose. Nominally: selectively clear a row's, column's, or the whole table's cell content by category (TDeleteContent, presumably a bitmask distinguishing e.g. text vs. background vs. formatting).

Description. MAJOR VERIFIED FINDING: Types is accepted by all three functions but is completely ignored by the real implementation. All three funnel into the same per-cell ClearCell(Row, Col, Types), whose entire body unconditionally resets exactly five fields — Text, HasBg, HasTextColor, Flags, FontNameregardless of what Types specifies. There is no branching on Types anywhere in ClearCell. Furthermore, ClearCell never touches a cell's image (HasImage/ImgBuf/...), nested sub-table (HasSubTable/SubTable), template (HasTemplate/...), attached action (HasAction/...), dash pattern (HasDash/...), or box-property (HasBoxProp/...) state at all — meaning none of tblClearRow/tblClearColumn/tblClearContent can ever clear a cell image, nested table, template, action, dash pattern, or box property, no matter what Types is set to. A caller wanting to remove a cell image, for example, has no API in this whole 43-function surface to do so — only overwriting it with a new tblSetCellImage* call.

Parameters.

ParameterDescription
TableTarget table handle.
Row / Col*(ClearRow/ClearColumn only)* Target row/column.
TypesAccepted but has zero effect — the same fixed 5-field reset always happens regardless of value, and several cell content categories (image/sub-table/template/action/dash/box) are never cleared by any of these three functions under any Types value.

Return value. None (all procedures).

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void tblClearRow(IntPtr Table, uint Row, uint Types);
Area
Reporting
Category

Misc

Exported names

tblClearRow

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.