Shape.DeleteRow Method
Visio Automation Reference |
Deletes a row from a section in a ShapeSheet spreadsheet. .
Version Information
Version Added: Visio 2.0
Syntax
expression.DeleteRow(Section, Row)
expression A variable that represents a Shape object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Section | Required | Integer | The index of the section that contains the row. |
Row | Required | Integer | The index of the row to delete. |
Return Value
Nothing
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.
Example
The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the DeleteRow method to delete a ShapeSheet row.
Visual Basic for Applications |
---|
|
See Also