Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.Table.SetCellStyledText

Inserts the specified styled text into the cell.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.Table.SetCellStyledText"; Table; Row; Col; HAlign; VAlign; StyledText { ; LeadingFactor } )   More

Parameters

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

Result

Returns OK or error.

Description

Inserts the specified styled text into the cell.
Converts styled text to DynaPDF formatting commands and add it to the cell.
Convenience function to call DynaPDF.Table.SetCellText with styled text converted through DynaPDF.ConvertStyledText internally.

Examples

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 ) ) ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 23th February 2021, last changed 23th February 2021


DynaPDF.Table.SetCellSpacing - DynaPDF.Table.SetCellTable