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…
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
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://ko.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?