Hi,
We have a mix of "Tx Text Controls" (as Text Editors) and UltraGrid controls in our application. How do I integrate UltraSpellChecker with "Tx Text Control"? Can you provide an example?
Hello,
What you could try is the following:
this.ultraSpellChecker1.ShowSpellCheckDialog(desired control);
this
desired control
But since I am not aware of the "Tx Text Control" I could not say if this would work or not.
Please take a look at the following link where you would be able to find more information about using our UltraSpellChecker:
http://help.infragistics.com/NetAdvantage/WinForms/2011.1/CLR2.0/?page=Win_WinSpellChecker_Using_WinSpellChecker.html
If you have any other questions please feel free to ask.
Many thanks for your reply...
The Tx Text Control API has a TextControl class which derives from TextControlBase class which ultimately derives from System.Windows.Forms.Control class.
I tried launching the Spell Check dialog for the TextControl using the following line of code:
this.ultraSpellChecker1.ShowSpellCheckDialog(this.textControl1);
but got an exception:
System.ArgumentException was unhandled
Message="The specified object was not of the correct type.\r\nParameter name: spellCheckTarget"
Source="Infragistics2.Win.UltraWinSpellChecker.v10.3"
ParamName="spellCheckTarget"
Then I tried to do something like this:
this.ultraSpellChecker1.SetSpellCheckerSettings(this.textControl1, new SpellCheckerSettings());
but again got an exception:
Message="The specified control cannot have SpellCheckerSettings applied to it.\r\nParameter name: control"
ParamName="control"
Please advise how can I get the UltraSpellChecker to work with this control…