public IAbstractMarkupData CreateLockedContent() { var lockedContentProperties = PropertiesFactory.CreateLockedContentProperties(LockTypeFlags.Manual); var lockedContent = ItemFactory.CreateLockedContent(lockedContentProperties); return(lockedContent); }
// protect text from being altered during translation // by locking it private void WriteLockedContent(string LockedContent) { //create opening tag for locked content ILockedContentProperties Lockedprops = PropertiesFactory.CreateLockedContentProperties(LockTypeFlags.Manual); Output.LockedContentStart(Lockedprops); //create text inside of locked content ITextProperties textProps = PropertiesFactory.CreateTextProperties(LockedContent); Output.Text(textProps); //close locked content Output.LockedContentEnd(); }