DeleteSection method

Microsoft Visio Developer Reference

DeleteSection method

       

Deletes a ShapeSheet section.

Version added

2.0

Syntax

object.DeleteSection section

object

Required. An expression that returns a Shape object.

section

Required Integer. The index of the section to delete.

Remarks

When you delete a ShapeSheet section, all rows in the section are automatically deleted. If the specified section does not exist, nothing is deleted and no error is generated.

If a Geometry section is deleted, any subsequent Geometry sections shift up because they are indexed and no gaps can exist in an indexed range.

You can delete any section except the section represented by visSectionObject (although you can delete rows within that section).

For a list of section index values, see the AddSection method or view the Visio type library for the members of visSectionIndices.