AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Procesador de texto / Tipos de variables
  • Properties specific to docTable variables
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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.
Ejemplo
// 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.Count
	// Browses the columns
	FOR j = 1 _TO_ pTable.Table.Columns.Count
		Trace("Value of cell [[%i%]][[%j%]] = " + 
		pTable.Table.Cells[i, j].Content.Text)
	END
END
Propiedades

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(pTable.Table.Columns, 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(pTable.Table.Rows, 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.
Versión mínima requerida
  • Versión 22
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local