Created
May 28, 2015 12:30
-
-
Save cromica/4182815a61117b5a3dbb to your computer and use it in GitHub Desktop.
sample code showing how to update a segment pair 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 segmentPair = _editorController.ActiveDocument.ActiveSegmentPair; | |
foreach (var markupData in segmentPair.Target) | |
{ | |
var text = markupData as IText; | |
if (text != null) | |
{ | |
text.Properties.Text = "Segment directly updated"; | |
} | |
} | |
_editorController.ActiveDocument.UpdateSegmentPair(segmentPair); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment