Created
May 28, 2015 10:46
-
-
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
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 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