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