Using the API to add a new TU with in-line tagging

Hi,

I want to create a TM programmaticaly (C#) from a 2-column text file containing source/target translations.

The input is a mix of normal untagged strings and string containing in-line tagging.

Adding untagged source/target strings seems simple enough. It's the strings containing in-line tagging that I am struggling with.

I've checked the "trados-studio-api-samples" Git repo and the API documentation but can't see anything that gives the details.

Does anyone have any code samples they could share on how to add source/target text containing in-line tagging?

Thanks!

emoji