RowCount property

Microsoft Visio Developer Reference

RowCount property

       

Returns the number of rows in a ShapeSheet section.

Version added

2.0

Syntax

retVal = object.RowCount (section)

retVal

Integer. The number of rows in the section.

object

Required. An expression that returns a Shape object.

section

Required Integer. The section to count.

Remarks

The section argument must be a section constant. For a list of section constants, see the AddSection method.

Use the RowCount property primarily with sections that contain a variable number of rows, such as Geometry and Connection Points sections. The value returned by the RowCount property for sections that have a fixed number of rows is the number of rows in the section that possess at least one cell whose value is local to the shape. This is opposed to rows whose cells are all inherited from a master or style, which is typically better because Visio doesn't need to store as much information. In the ShapeSheet window, cells with local values appear in blue, and cells with inherited values appear in black. Using Automation, you can determine if a cell is inherited using the IsInherited property.