Created
January 9, 2024 20:15
-
-
Save bjoerntx/f9d5a4289272c7a7a448d0f3002a1410 to your computer and use it in GitHub Desktop.
This file contains 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
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