API referenceReporting

tblSetCellDashPattern

tblSetCellAction attaches a clickable action (an

C
BOOL32 __stdcall tblSetCellAction(ITBL Table, int32_t Row, int32_t Col, uint32_t ActionHandle, THighlightMode Mode);
BOOL32 __stdcall tblSetCellDashPattern(ITBL Table, int32_t Row, int32_t Col, TCellSide Side, TLineCapStyle Style, float* Dash, uint32_t NumValues, float Phase);
BOOL32 __stdcall tblSetBoxProperty(ITBL Table, int32_t Row, int32_t Col, TTableBoxProperty PropType, float Left, float Right, float Top, float Bottom);
BOOL32 __stdcall tblSetColOrRowSpan(ITBL Table, uint32_t Row, uint32_t Col, uint32_t Value, BOOL32 IsColSpan);
Delphi
function tblSetCellAction(const Table: ITBL; Row, Col: Integer; ActionHandle: Cardinal; Mode: THighlightMode): LongBool; stdcall;
function tblSetCellDashPattern(const Table: ITBL; Row, Col: Integer; Side: TCellSide; Style: TLineCapStyle; const Dash: PSingle; NumValues: Cardinal; Phase: Single): LongBool; stdcall;
function tblSetBoxProperty(const Table: ITBL; Row, Col: Integer; PropType: TTableBoxProperty; Left, Right, Top, Bottom: Single): LongBool; stdcall;
function tblSetColOrRowSpan(const Table: ITBL; Row, Col, Value: Cardinal; IsColSpan: LongBool): LongBool; stdcall;

Purpose. tblSetCellAction attaches a clickable action (an already-created action handle, Actions & Named Destinations) to a cell with a highlight mode. tblSetCellDashPattern sets a per-side dashed-border pattern. tblSetBoxProperty sets per-side box (border) geometry — genuinely real for all four sides independently. tblSetColOrRowSpan merges adjacent cells horizontally or vertically.

Description. All four are plain, real, bounds-checked field setters, each storing directly into the corresponding TTableCell fields (HasAction/ActionHandle/ActionMode; HasDash/DashSide/DashStyle/DashVals/DashPhase; HasBoxProp/BoxPropType/BoxL/BoxR/BoxT/BoxB; ColSpan/ RowSpan). tblSetCellDashPattern's Dash/NumValues array is marshaled into a real Pascal array before storage (no truncation or data loss observed). tblSetColOrRowSpan's IsColSpan selects which of the cell's two span fields (ColSpan vs. RowSpan) Value writes to — a single call sets exactly one axis, not both.

Parameters.

ParameterDescription
TableTarget table handle.
Row, ColTarget cell coordinates.
ActionHandle, Mode*(CellAction only)* The action and its click-highlight visual mode.
Side, Style, Dash, NumValues, Phase*(DashPattern only)* Which border side, the dash cap style, the dash-length array, and the starting phase offset.
PropType, Left, Right, Top, Bottom*(BoxProperty only)* Which box property, and per-side values.
Value, IsColSpan*(ColOrRowSpan only)* The span count, applied to either ColSpan or RowSpan depending on IsColSpan.

Return value. True if Row/Col are in range for all four functions.

C# (P/Invoke)

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

Misc

Exported names

tblSetCellDashPattern

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.