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?
Sorry to bother you again. I was browsing throuh your website and found the following
"With WinSpellChecker™, you can check the spelling of any text based control, including TextBoxes, RichTextBoxes, and any object that implements the IProvideTextBox or ISupportSpellChecking interfaces" http://es.infragistics.com/dotnet/netadvantage/winforms/winspellchecker.aspx#Overview
However, I couldn't find any documentation for "ISupportSpellChecking" interface. Is this a deprecated interface? If not, could you provide me with some documentation or working example of "ISupportSpellChecking" interface?
Regards,Harmandeep S.QSR International
No, Thanks.
Do you have more questions?
Harmandeep,
This would be a feature request. Take a look at this forum post in which Mike Dour discusses implementing the ISpellCheckTarget interface:
http://news.infragistics.com/forums/p/5151/212199.aspx#212199
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…