Skip to content

Instantly share code, notes, and snippets.

@cromica
Created May 28, 2015 12:30
Show Gist options
  • Save cromica/4182815a61117b5a3dbb to your computer and use it in GitHub Desktop.
Save cromica/4182815a61117b5a3dbb to your computer and use it in GitHub Desktop.
sample code showing how to update a segment pair using integration API
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