ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions / Types of variables
  • Properties specific to docTable variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
Example
// Récupération du document
MonDocument is Document <- TT_Tableau
// Récupération du tableau, ici le paragraphe 1
pTableau is docParagraph <- MonDocument.Paragraph[1]

// Parcours les lignes
FOR i = 1 _TO_ pTableau.Table.Rows.Count
	// Parcours les colonnes
	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 nameType usedEffect
Cells[Row,Column]Table of table cells (docCell)Accessing the cells of a Table paragraph. The type of table cells is docCell.
ColumnsdocColumn variableUsed to handle the table columns.
For example, to insert a column at the 3rd column of a table:
Insert(pTableau.Tableau.Colonnes, 3)
Columns.WidthMillimetersRealWidth of row (in millimeters).
Columns.WidthModeInteger constantMode 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.
RowsdocRow variableUsed to handle the table rows.
For example, to insert a row at the 3rd row of a table:
Insert(pTableau.Tableau.Lignes, 3)
Rows.HeightIntegerHeight of row (in millimeters).
Rows.HeightModeInteger constantMode 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.CellCountIntegerNumber of row cells.
This property is read-only.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help