Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TABLECELLPARMS structure

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;
  WORD     nVertAlign:2;
  WORD     fMergeTop:1;
  WORD     fMergePrev:1;
  WORD     fVertical:1;
  WORD     fMergeStart: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:2

Type: WORD

The vertical alignment of cells (\clvertalt (def), \clvertalc, \clvertalb). It can be one of the following values.

ValueMeaning
0

The content appears at the top of a cell.

1

The content is centered in the cell.

2

The content appears at the bottom of a cell.

 

fMergeTop:1

Type: WORD

Top cell for vertical merge (\clvmgf).

fMergePrev:1

Type: WORD

Merge with the cell above (\clvmrg).

fVertical:1

Type: WORD

Display text top to bottom, right to left (\cltxtbrlv).

fMergeStart:1

Type: WORD

Start set of horizontally merged cells (\clmgf).

fMergeCont:1

Type: WORD

Merge with the previous cell (\clmrg).

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

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.