Skip to content

Instantly share code, notes, and snippets.

@cromica
Created June 2, 2015 12:21
Show Gist options
  • Save cromica/a281d232959dbabe1222 to your computer and use it in GitHub Desktop.
Save cromica/a281d232959dbabe1222 to your computer and use it in GitHub Desktop.
sample code showing how to delete comment on segment using integration API
var editorController = GetEditorController();
var segmentId = editorController.ActiveDocument.ActiveSegmentPair.Properties.Id.Id;
var c = editorController.ActiveDocument.GetCommentsFromSegment(segmentId);
editorController.ActiveDocument.DeleteCommentOnSegment(segmentId, c.ElementAt(0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment