PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of docTable variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 different WLanguage properties.
CAUTION: This type must not be used directly. It must only be used via the docParagraph variables corresponding to a table.
This type of variable is available from version 220059U (module dated 05/17/2017).
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.Tableau.Lignes.Occurrence
// Parcours les colonnes
FOR j = 1 _TO_ pTableau.Tableau.Colonnes.Occurrence
Trace("Valeur de la cellule [[%i%]][[%j%]] = " +
pTableau.Tableau.Cellules[i,j].Contenu.Texte)
END
END
Remarks

Properties specific to the description of docTable variables

The following properties can be used to handle a docTable variable:
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)
Versions 23 and later
Columns.WidthMillimeters
New in version 23
Columns.WidthMillimeters
Columns.WidthMillimeters
RealWidth of row (in millimeters).
Versions 23 and later
Columns.WidthMode
New in version 23
Columns.WidthMode
Columns.WidthMode
Integer constantMode for calculating the column width:
  • docWidthModeNone: Special case.
  • docWidthModeAutomatic: The column width is automatically calculated according to the text found in the current column and to the one found in the other columns.
  • docWidthModeUndefined: The mode for calculating the column width is not defined because column cells have different widths.
  • docWidthModePercent: The mode for calculating the column width is performed in percentage of total table width.
  • docWidthModeValue: The mode for calculating the width of columns is performed according to a width supplied in millimeters. This mode is automatically selected if Columns.WidthMillimeters is specified.
This property is available in 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:
  • docHeightModeAtLeast: The height of the row will be at least that defined by the Property Height.
  • docHeightModeAutomatic: The row height is automatically calculated according to the text found in the row cells.
  • docHeightModeExact: The height of the row will be that defined by the Property Height.
  • docHeightModeUndefined: The mode for calculating the row height is not defined (the automatic caculation mode is performed by default).
Rows.CellCountIntegerNumber of row cells.
This property is available in read-only.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment