DeleteRow method

Microsoft Visio Developer Reference

DeleteRow method

       

Deletes a row from a section in a ShapeSheet spreadsheet.

Version added

2.0

Syntax

object.DeleteRow section, row

object

Required. An expression that returns a Shape object.

section

Required Integer. The index of the section that contains the row.

row

Required Integer. The index of the row to delete.

Remarks

To remove one row at a time from a ShapeSheet section, use the DeleteRow method. If the section has indexed rows, the rows following the deleted row shift position. If the row does not exist, nothing is deleted.

You should not delete rows that define fundamental characteristics of a shape, such as the 1-D Endpoints row (visRowXForm1D) or the component row (visRowComponent) or the MoveTo row (visRowVertex + 0) in a Geometry section. You cannot delete rows from sections represented by visSectionCharacter, visSectionParagraph, and visSectionTab.