The OpenOfficeDictionary class represents a dictionary that gets its content from a Hunspell Open Source dictionary. As with all dictionaries of type Dictionary, the content of the dictionary is only accessed when the dictionary is added to the TXSpell.Dictionaries collection. The first implementation loads a Hunspell Open Source dictionary from a file that is defined by a dictionary path. Using the dictionary name only without a file path, the corresponding dictionary file of the default dictionary folder is used. The second constructor loads a dictionary from string arrays that represent the content of a Hunspell Open Source dictionary and the corresponding affix file. It is recommended to create these arrays by using the encoding that is defined in the corresponding affix file represented by the "SET"-Flag. Using this implementation, it is also required to define the language of the dictionary by setting the System.Globalization.CultureInfo language parameter that sets the Proofing.Dictionary.Language property automatically. It is inherited from the abstract class Dictionary.

Syntax

public sealed class OpenOfficeDictionary : Dictionary
Public NotInheritable Class OpenOfficeDictionary
  Inherits Dictionary

Constructors

Constructor Description
OpenOfficeDictionary Initializes a new instance of the OpenOfficeDictionary class.

Properties

Property Description
DictionaryEncoding Gets or sets the dictionary's encoding.
(Inherited from Dictionary)
DisplayName Gets or sets the text that is displayed for the dictionary inside the options dialog or the SpellCheckDialog's SuggestionDictionaryComboBox.
(Inherited from Dictionary)
IsGetSuggestionsEnabled Gets or sets a value that indicates whether suggestions are created using this dictionary or not.
(Inherited from Dictionary)
IsSelectedAsDefault Gets a value indicating whether the dictionary is selected as the default dictionary by the Language property.
(Inherited from Dictionary)
IsSpellCheckingEnabled Gets or sets a value indicating whether spell checking of this dictionary is enabled or not.
(Inherited from Dictionary)
Language Gets or sets the dictionary's language.
(Inherited from Dictionary)
Name Gets or sets the dictionary's name.
(Inherited from Dictionary)
ShowInOptionsDialog Gets or sets a value indicating whether the dictionary is shown in the options dialog.
(Inherited from Dictionary)