// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET // The path to the documents directory. string dataDir = RunExamples.GetDataDir_VisioComments(); // Load Visio Diagram diagram = new Diagram(dataDir + "Drawing1.vstx"); // Get collection of the annotations AnnotationCollection annotations = diagram.Pages.GetPage("Page-1").PageSheet.Annotations; //Get comment of collection Annotation an = annotations[0]; // Remove Comment annotations.Remove(an); // Save Visio diagram.Save(dataDir + "RemoveComment_out.vsdx", SaveFileFormat.VSDX);