Skip to content

Latest commit

 

History

History
57 lines (31 loc) · 1.02 KB

Visio.Shape.Delete.md

File metadata and controls

57 lines (31 loc) · 1.02 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.Delete method (Visio)
vis_sdr.chm11216165
vis_sdr.chm11216165
Visio.Shape.Delete
0960d9e1-b091-ea8c-0724-e10a68d8821a
06/08/2017
medium

Shape.Delete method (Visio)

Deletes an object or selection.

Syntax

expression.Delete

expression A variable that represents a Shape object.

Return value

Nothing

Remarks

If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this method maps to the following types:

  • Microsoft.Office.Interop.Visio.IVShape.Delete()

Example

This example shows how to delete Shape objects.

 
Public Sub Delete_Example()  
 
    Dim vsoShape As Visio.Shape  
 
    Set vsoShape = ActivePage.DrawLine(1, 1, 5, 5)  
 
    vsoShape.Delete  
 
End Sub

[!includeSupport and feedback]