Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Inserts the specified styled text into the cell.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 11.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Table | The identifier for the table. | $Table | |
Row | The row number. Range from 0 to DynaPDF.Table.GetNumRows-1. | 0 | |
Col | The column number. Range from 0 to DynaPDF.Table.GetNumCols-1. | 0 | |
HAlign | The horizontal alignment. Can be left, center or right. | "center" | |
VAlign | The vertical alignment. Can be bottom, center or top. | "center" | |
StyledText | The styled text for the cell. | TextColor ( "Hello World" ; RGB ( 65535 ; 0 ; 0 ) ) ) | |
LeadingFactor | If you pass a value > 0, the plugin will add \LD[] commands to styled text to set leading relative to font size. This way you define the spacing beteween lines. | 1.2 | Optional |
Returns OK or error.
Put some red text in the cell:
Set Variable [ $r ; Value: MBS("DynaPDF.Table.SetCellStyledText"; $table; $rowNum; 0; "left"; "bottom"; TextColor ( "Hello World" ; RGB ( 65535 ; 0 ; 0 ) ) ) ]
This function checks for a license.
Created 23th February 2021, last changed 23th February 2021