Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.Table.SetColor
Sets or changes the specified color as well as the corresponding device color space.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.5 | Yes | Yes | Yes | Yes | Yes |
MBS( "DynaPDF.Table.SetColor"; Table; Row; Col; Type; CS; Color ) 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 |
| Type | Which table color. Can be BackColor, BorderColor, GridHorzColor, GridVertColor, ImageColor or TextColor. | "TextColor" |
| CS | The colorspace to use. Can be DeviceRGB, DeviceCMYK, DeviceGray. | "DeviceRGB" |
| Color | The color value. | 255 |
Result
Returns OK or error.
Description
Sets or changes the specified color as well as the corresponding device color space.Colors of an extended color space can be set with DynaPDF.Table.SetColorFloat.
The text color is inherited from the table, column, and row, in this order. The border color is inherited from columns and rows but not from the table since the table has its own border.
Examples
Set green text color:
MBS( "DynaPDF.Table.SetColor"; $table; $Row; $Col; "TextColor"; "DeviceRGB"; 255*256 )
See also
- DynaPDF.Table.AddColumn
- DynaPDF.Table.GetNumCols
- DynaPDF.Table.GetNumRows
- DynaPDF.Table.SetCellText
- DynaPDF.Table.SetColorFloat
- DynaPDF.Table.SetColWidth
- DynaPDF.Table.SetFlags
- DynaPDF.Table.SetFont
- DynaPDF.Table.SetGridWidth
- DynaPDF.Table.SetPDF
Created 18th August 2014, last changed 18th August 2014
DynaPDF.Table.SetColWidth - DynaPDF.Table.SetColorFloat
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins