| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
DynaPDF.Table.SetColOrRowSpan
Sets col or row span for a specific cell.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| DynaPDF | 16.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.Table.SetColOrRowSpan"; Table; Row; Col; Span; IsColSpan ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Table | The identifier for the table. | $Table |
| Row | The row number. Range from 0 to DynaPDF.Table.GetNumRows-1. Pass -1 for all rows. | 0 |
| Col | The column number. Range from 0 to DynaPDF.Table.GetNumCols-1. Pass -1 for all columns. | 0 |
| Span | Col or row span (must be greater 1) | 1 |
| IsColSpan | If true, col span is set, row span otherwise. | true |
Result
Returns OK or error.
Description
Sets col or row span for a specific cell.The parameter Value must be greater 1 and Row and Col must be valid row and column indexes.
Contents of spanned cells will be deleted. Only contents of the cell that defines col or row span is
drawn.
It is allowed to set Value to a higher value than columns or rows are currently available. The value is adjusted to the valid range when the table is drawn or when the height is calculated.
Note that spanned cells cannot overlap. The function checks whether col or row span was already defined in the desired range.
Examples
Merge two columns:
Set Variable [ $r ; Value: MBS("DynaPDF.Table.SetColOrRowSpan"; $table; $rowNum; $col; 2; True) ]
Merge two rows:
Set Variable [ $r ; Value: MBS("DynaPDF.Table.SetColOrRowSpan"; $table; $rowNum; 1; 2; False) ]
See also
- DynaPDF.Table.GetNumCols
- DynaPDF.Table.GetNumRows
- DynaPDF.Table.SetColor
- DynaPDF.Table.SetColorFloat
Release notes
- Version 16.2
- Added DynaPDF.Table.SetColOrRowSpan function.
Blog Entries
This function checks for a license.
Created 1st May 2026, last changed 1st May 2026