TXTextControl.Proofing.TXSpellChecker.CreateSynonyms Method

Returns groups of synonyms that represent equivalent expressions for a specific text. The first implementation uses selected synonym lists of the SynonymListCollection at TXSpellChecker.SynonymLists. The second implementation uses selected synonym lists of the TXSpellChecker.SynonymLists collection and the default synonym lists folder where the synonym list's language equals to the defined language parameter. The last overload creates synonym groups for a specific synonym list. Only those synonym lists are used whose SynonymList.IsCreateSynonymsEnabled properties are set to true.

Introduced: 7.0.

CreateSynonyms(String)

Returns synonyms for a specific text using the selected synonym lists of the SynonymListCollection at the TXSpellChecker.SynonymLists.

[C#]
public Proofing.SynonymGroup[] CreateSynonyms(string text);
[Visual Basic]
Public Function CreateSynonyms(text As String) As Proofing.SynonymGroup()
Parameter Description
text

Specifies the text that has to be determined for synonyms.

CreateSynonyms(String, CultureInfo)

Returns synonyms for a specific text using the selected synonym lists of the SynonymListCollection at the TXSpellChecker.SynonymLists and the default synonym lists folder where the synonym list's language equals to the defined language parameter.

[C#]
public Proofing.SynonymGroup[] CreateSynonyms(string text, System.Globalization.CultureInfo language);
[Visual Basic]
Public Function CreateSynonyms(text As String, language As System.Globalization.CultureInfo) As Proofing.SynonymGroup()
Parameter Description
text

Specifies the text that has to be determined for synonyms.

language

The language that is used to create synonyms for the specified text.

CreateSynonyms(String, SynonymList)

Returns synonyms for a specific text using a specific SynonymList.

[C#]
public Proofing.SynonymGroup[] CreateSynonyms(string text, Proofing.SynonymList synonymList);
[Visual Basic]
Public Function CreateSynonyms(text As String, synonymList As Proofing.SynonymList) As Proofing.SynonymGroup()
Parameter Description
text

Specifies the text that has to be determined for synonyms.

synonymList

The synonymList that is used to create synonyms for the specified text.