Remove Microsoft® Visio File Annotations via .NET

Add or delete Visio files annotations using C# code within .NET based applications.

 

.NET Visio Library provides support to manage annotations at shape level by adding, accessing and removing comments. Using comments at shape level, relevant information can be stored for end users. Supported file formats include VDW, VDX, VSD, VSDM, VSDX,VSS,VSSM,VSSX,VST,VSTM,VSTX,VSX and VTX.

Visio Files Data Annotations

Managing Comments in Pages - There is not any limit that how many comments a page has in MS Visio. One can add as much as of application requirement. We will use the Annotation Class for all of this functionality.

  • Load Visio file using Diagram class object
  • Acess the relevant Page
  • Call AddComment to add the comment
  • Use Comment property for adding comments content
  • Save the diagram before & after calling AddComment method to compare
C# Code to Insert Visio Files Comments