API referenceReporting

tblSetFlags

Get/set a per-cell flags bitmask (this chapter did not

C
int32_t __stdcall tblGetFlags(ITBL Table, int32_t Row, int32_t Col);
BOOL32 __stdcall tblSetFlags(ITBL Table, int32_t Row, int32_t Col, TTableFlags Flags);
Delphi
function tblGetFlags(const Table: ITBL; Row, Col: Integer): Integer; stdcall;
function tblSetFlags(const Table: ITBL; Row, Col: Integer; Flags: TTableFlags): LongBool; stdcall;

Purpose. Get/set a per-cell flags bitmask (this chapter did not independently enumerate TTableFlags' individual bit meanings — treat as opaque, consumed at draw time).

Description. Both plain, real, bounds-checked accessors over TTableCell.Flags — a genuine real round-trip (unlike several other "round-trip only" fields documented elsewhere in this volume, this one's setter writes the exact field the getter reads, no disconnection).

Parameters.

ParameterDescription
TableTarget table handle.
Row, ColTarget cell coordinates.
Flags*(Set only)* The new flags bitmask (replaces, does not OR-merge, the existing value).

Return value. tblGetFlags: the cell's flags (0 if out of range). tblSetFlags: True if in range.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Reporting
Category

Misc

Exported names

tblSetFlags

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.