|
|
|
|
|
- Properties specific to docTable variables
docTable (Variable type) In french: docTableau
The docTable type is used to define the advanced characteristics of a Table paragraph found in a Word Processing document. The characteristics of this array can be defined and modified using various WLanguage properties. ATTENTION: This type must not be used directly. It must only be used via variables of type docParagraph corresponding to an array.
MonDocument is Document <- TT_Tableau
pTableau is docParagraph <- MonDocument.Paragraph[1]
FOR i = 1 _TO_ pTableau.Table.Rows.Count
FOR j = 1 _TO_ pTableau.Table.Columns.Count
Trace("Valeur de la cellule [[%i%]][[%j%]] = " +
pTableau.Table.Cells[i,j].Content.Text)
END
END
Properties Properties specific to docTable variables The following properties can be used to define the characteristics of docTable variables: | | | | Property name | Type used | Effect |
---|
Cells[Row,Column] | Table of table cells (docCell) | Accessing the cells of a Table paragraph. The type of table cells is docCell. | Columns | | docColumn variable | Used to handle the table columns. For example, to insert a column at the 3rd column of a table: Insert(pTableau.Tableau.Colonnes, 3)
| | Columns.WidthMillimeters | Real | Width of row (in millimeters). | | Columns.WidthMode | Integer constant | Mode for calculating the column width: - docModeWidthNo Special case.
- docModeAutomaticWidth The column width is automatically calculated based on the text in the current column and the text in the other columns.
- docWidthModeNotDefined: Column width calculation mode not defined because cells in the column have different widths.
- docModeWidthPercent: The column width is calculated as a percentage of the total width of the array..
- docModeWidthValue The column width is calculated according to the width given in millimetres. If the Columns.WidthMillimeters property is set, this mode is automatically selected..
This property is read-only. | Rows | | docRow variable | Used to handle the table rows. For example, to insert a row at the 3rd row of a table: Insert(pTableau.Tableau.Lignes, 3)
| | Rows.Height | Integer | Height of row (in millimeters). | | Rows.HeightMode | Integer constant | Mode for calculating the row height: - docModeHeightAtLeast: The height of the line will be at least that defined by the property Height.
- docModeAutomaticHeight The height of the line is automatically calculated according to the text present in the cells of the line.
- docModeExactHeight The height of the line will be that defined by the property Height.
- docHeightModeNotDefined: Line height calculation mode not defined (default is automatic calculation mode).
| | Rows.CellCount | Integer | Number of row cells. This property is read-only. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|