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

DynaPDF.Table.SetGridWidth

Sets the grid width.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.Table.SetGridWidth"; Table; Horz; Vert )   More

Parameters

Parameter Description Example
Table The identifier for the table. $Table
Horz Horizontal grid width or zero. 0
Vert Vertical grid width or zero. 0

Result

Returns OK or error.

Description

Sets the grid width.
The table grid consists of horizontal and vertical lines which are drawn in the middle of two rows or columns. The grid lines cover always the entire width or height of the table. The line widths can be set to different values for the horizontal and vertical lines. If no lines should be drawn then set the value to zero. The colors of horizontal and vertical grid lines can be set with DynaPDF.Table.SetRGBColor, DynaPDF.Table.SetColor or DynaPDF.Table.SetColorFloat.
Only the table supports grid lines. The parameters Row and Col of DynaPDF.Table.SetRGBColor, DynaPDF.Table.SetColor or DynaPDF.Table.SetColorFloat must be set to -1.

Examples

Set grid width:

MBS("DynaPDF.Table.SetGridWidth"; $table; 1; 1)

Set blue grid lines:

Set Variable [ $r; Value:MBS("DynaPDF.Table.SetRGBColor"; $table; -1; -1; "GridHorzColor"; 0; 0; 255) ]
Set Variable [ $r; Value:MBS("DynaPDF.Table.SetRGBColor"; $table; -1; -1; "GridVertColor"; 0; 0; 255) ]
Set Variable [ $r; Value:MBS("DynaPDF.Table.SetGridWidth"; $table; 1; 1) ]

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 1st June 2021


DynaPDF.Table.SetFontSize - DynaPDF.Table.SetPDF