/// ------------------------------------------------------------------------------------ /// <summary> /// Get an XML representation of the given ITsTextProps. /// </summary> /// <param name="ttp">The TTP.</param> /// <param name="wsf">The WSF.</param> /// <returns></returns> /// ------------------------------------------------------------------------------------ public static string GetXmlRep(ITsTextProps ttp, ILgWritingSystemFactory wsf) { using (var writer = new StringWriter()) { var stream = new TextWriterStream(writer); ttp.WriteAsXml(stream, wsf, 0); return writer.ToString(); } }