Table of contents
Collapse the table of content
Expand the table of content

Shape.AddNamedRow Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Adds a row that has the specified name to the specified ShapeSheet section.


expression . AddNamedRow( Section , RowName , RowTag )

expression A variable that represents a Shape object.


NameRequired/OptionalData TypeDescription
SectionRequiredIntegerThe section in which the row is to be added.
RowNameRequiredStringThe name of the new row.
RowTagRequiredIntegerThe type of row to be added.

Return Value



You can add named rows to the Actions ( visSectionAction ), Controls ( visSectionControls ), Shape Data ( visSectionProp ), User-Defined Cells ( visSectionUser ), Hyperlinks ( visSectionHyperlink ), and Connection Points ( visSectionConnectionPts ) ShapeSheet sections. You can access cells in the new rows by passing the row number returned by the AddNamedRow method to the CellsSRC property. Alternatively, you can access cells in the new rows by using the row's name with the Cells property. For details about cell references and cells in named rows, see the Actions, Controls, User-defined Cells, Hyperlink, Shape Data, or Connection Points row topics in the Microsoft Visio ShapeSheet Reference.

An empty row name string ("") creates a row with a default name.

Passing a value of visTagDefault (0) in the RowTag argument generates the default row type for the section. Explicit tags are useful when adding rows to a Connection Points section. See the RowType property for descriptions of valid row types for each section. Passing an invalid row type generates an error.

Adding a named row to a Connection Points section automatically converts any existing unnamed rows in the section into named rows, assigning them default names (Row_1, Row_2, and so on).

© 2018 Microsoft