The
docCell type is used to define the advanced characteristics of a table cell found in a Word Processing document. The characteristics of this cell can be defined and modified using different WLanguage properties.
CAUTION: This type must not be used directly. It must only be used:
For more details on the different types related to Word Processing documents, see
Types associated with the Word processing.
// Retrieve the document
MyDocument is Document <- WP_Table
// Retrieve the table, here the paragraph 1
pTable is docParagraph <- MyDocument.Paragraph[1]
// Browses the rows
FOR I = 1 _TO_ pTable.Table.Rows.Occurrence
// Browses the columns
FOR I = 1 _TO_ pTable.Table.Columns.Occurrence
Trace("Value of cell [[%I%]][[%j%]] = " +
pTable.Table.Cells[I, j].Content.Text)
END
END
Remarks
Properties specific to the description of docCell variables
The following properties can be used to handle a docCell variable:
| | | |
Property name | Type used | Effect |
---|
Content | docFragment variable | Content of table cell. |
ColSpan | Integer | Index of the current column. |
RowSpan | Integer | Index of the current row. |
ColumnIndex | Integer | Index of the current column. |
RowIndex | Integer | Index of the current row. |
PageLayout | | Layout of current cell. |
| PageLayout.Border | Border variable | Identifier of border used for the paragraph. Remark: the rounded corners are not supported. |
| PageLayout.BackgroundColor | Integer | Cell background color. This color can correspond to: |
| PageLayout.BackgroundPattern | Background variable | Characteristics of the cell background. |