TX Spell .NET comes with a core assembly and separate assemblies for the Win32 platforms Windows Forms and WPF. When using TX Spell .NET with the non-UI version of TX Text Control ServerTextControl, the core class TXTextControl.Proofing.TXSpell needs to be used.
In your project, add a reference to TXSpell.dll and add the following entries to your licenses.licx file:
TXTextControl.ServerTextControl, TXTextControl.Server, Version=23.0.800.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638 | |
TXTextControl.Proofing.TXSpell, TXSpell, Version=5.0.400.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638 |
Now, you can create a new instance of the TXSpell class and pass this to the SpellChecker property of ServerTextControl:
TXTextControl.Proofing.TXSpell spell = new TXTextControl.Proofing.TXSpell(); | |
spell.Create(); | |
using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl()) | |
{ | |
tx.Create(); | |
tx.SpellChecker = spell; | |
tx.IsHyphenationEnabled = true; | |
// your code here | |
} |
In the above code, hyphenation is activated, so that the created documents of ServerTextControl have the same output as the UI versions of TX Text Control where hyphenation is activated.
You can download a trial version of TX Spell .NET here.