Skip to content

Instantly share code, notes, and snippets.

@cromica
Created May 28, 2015 10:46
Show Gist options
  • Save cromica/92f94e278fe1c41d6a46 to your computer and use it in GitHub Desktop.
Save cromica/92f94e278fe1c41d6a46 to your computer and use it in GitHub Desktop.
sample code showing how you can obtain the segment pairs of a paragraph using SDL Studio Integration API
var activeParagraphProperties =
_editorController.ActiveDocument.ActiveSegmentPair.GetParagraphUnitProperties();
var segmentPairs = _editorController.ActiveDocument.GetSegmentPairsFromParagraph(activeParagraphProperties.ParagraphUnitId).ToList();
foreach (var segmentPair in segmentPairs)
{
//do some processing on the segment pairs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment