Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 9, 2024 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/f9d5a4289272c7a7a448d0f3002a1410 to your computer and use it in GitHub Desktop.
Save bjoerntx/f9d5a4289272c7a7a448d0f3002a1410 to your computer and use it in GitHub Desktop.
namespace MyWrapper
{
public class Class1
{
public Class1()
{
TXTextControl.ServerTextControl.EntryAssembly = typeof(Class1).Assembly;
}
public string GetHtml()
{
using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl())
{
tx.Create();
tx.Text = "Hello World!";
var html = "";
tx.Save(out html, TXTextControl.StringStreamType.HTMLFormat);
return html;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment