Cell shading in RTF documents

Does anyone know rtf tags for applying background color to a table cell?

I know the table structures:

{\rtf1\ansi\deff0
 \trowd
 \clshdng10000\cellx1000
 \clshdng10000\cellx2000
 \clshdng10000\cellx3000
 cell 1\intbl\cell
 cell 2\intbl\cell
 cell 3\intbl\cell
\row}

But I have no idea how to apply shading.

UPDATED: I added cell shading, but still can't set the hue color

+3
source share
1 answer

I managed to find a solution:

{\rtf1\ansi\deff0
{\colortbl;\red188\green230\blue138;}<!--define a color table -->
  \trowd
  \cellx1000
  \clcbpat1\cellx2000 <!- \clcbpat1 = set background color -->
  \cellx3000
  cell 1\intbl\cell
  cell 2\intbl\cell
  cell 3\intbl\cell
 \row
}

You can combine several colors, for example:

{\colortbl;\red188\green230\blue138;\red108\green030\blue038;}

And to use it, you call: \clcbpat1or\clcbpat2

+7
source

All Articles