RowCount (Property)

Applies To:

ResultsSection object, TableSection object

Description:

Returns the number of rows in a Results or Table section.

Note:

Use the QuerySize (Property) to determine the number of rows returned by queries.

Action:

Read-only, Integer

Example:

This example shows how to transfer a list of values from a table column to a list box in a Dashboard section:

var RC =  ActiveDocument.Sections["Table"].RowCount
  for ( j = 1; j <= RC ; j++)
  {
     var MyVal = ActiveDocument.Sections["Table"].Column["State"].GetCell(j)
     ActiveDocument.Sections["Dashboard"].Shapes["ListBox1"].Add(MyVal)
  }