TABLECELLPARMS structure (richedit.h)

Defines the attributes of cells in a table row. The definitions include the corresponding Rich Text Format (RTF) control words, which are defined in the Rich Text Format (RTF) Specification.

Syntax

typedef struct _tableCellParms {
    LONG     dxWidth;
  2 WORD     nVertAlign : 2;
  1 WORD     fMergeTop : 1;
  1 WORD     fMergePrev : 1;
  1 WORD     fVertical : 1;
  1 WORD     fMergeStart : 1;
  1 WORD     fMergeCont : 1;
    WORD     wShading;
    SHORT    dxBrdrLeft;
    SHORT    dyBrdrTop;
    SHORT    dxBrdrRight;
    SHORT    dyBrdrBottom;
    COLORREF crBrdrLeft;
    COLORREF crBrdrTop;
    COLORREF crBrdrRight;
    COLORREF crBrdrBottom;
    COLORREF crBackPat;
    COLORREF crForePat;
} TABLECELLPARMS;

Members

dxWidth

Type: LONG

The width of a cell (\cellx).

nVertAlign

fMergeTop

fMergePrev

fVertical

fMergeStart

fMergeCont

wShading

Type: WORD

Shading in .01% (\clshdng). This controls the amount of pattern foreground color (crForePat) and pattern background color (crBackPat) that is used to create the cell background color. If wShading is 0, the cell background is crBackPat. If it's 10000, the cell background is crForePat. Values of wShading in between are mixtures of the two pattern colors.

dxBrdrLeft

Type: SHORT

Left border width, in twips (\clbrdrl\brdrwN).

dyBrdrTop

Type: SHORT

Top border width (\clbrdrt\brdrwN).

dxBrdrRight

Type: SHORT

Right border width (\clbrdrr\brdrwN).

dyBrdrBottom

Type: SHORT

Bottom border width (\clbrdrb\brdrwN).

crBrdrLeft

Type: COLORREF

Left border color (\clbrdrl\brdrcf).

crBrdrTop

Type: COLORREF

Top border color (\clbrdrt\brdrcf).

crBrdrRight

Type: COLORREF

Right border color (\clbrdrr\brdrcf).

crBrdrBottom

Type: COLORREF

Bottom border color (\clbrdrb\brdrcf).

crBackPat

Type: COLORREF

Background color (\clcbpat).

crForePat

Type: COLORREF

Foreground color (\clcfpat).

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header richedit.h

See also

EM_INSERTTABLE

TABLEROWPARMS