Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Integrate UltraSpellChecker with other 3rd Party Text Controls
posted

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?

Parents
No Data
Reply Children
  • 195
    posted in reply to Danko Valkov

    Hi,

    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:

     

                    System.ArgumentException was unhandled

                    Message="The specified control cannot have SpellCheckerSettings applied to it.\r\nParameter name: control"

    Source="Infragistics2.Win.UltraWinSpellChecker.v10.3"

    ParamName="control"

     

    Please advise how can I get the UltraSpellChecker to work with this control…