Created
June 2, 2015 12:06
-
-
Save cromica/5b1931864dcbe16935e1 to your computer and use it in GitHub Desktop.
sample code showing how to update comment on segment using integration API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var editorController = GetEditorController(); | |
var segmentId = editorController.ActiveDocument.ActiveSegmentPair.Properties.Id.Id; | |
var c = editorController.ActiveDocument.GetCommentsFromSegment(segmentId); | |
editorController.ActiveDocument.UpdateCommentOnSegment(segmentId, c.ElementAt(0), | |
string.Format("U Comment {0}", ++_commentsCount), | |
Severity.Medium); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment