Skip to main content
All docs
V23.2

SpellChecker.SaveToRegistry(String) Method

Serializes the spell checker object and saves data to the registry.

Namespace: DevExpress.Xpf.SpellChecker

Assembly: DevExpress.Xpf.SpellChecker.v23.2.dll

NuGet Package: DevExpress.Wpf.SpellChecker

Declaration

public void SaveToRegistry(
    string path
)

Parameters

Name Type Description
path String

A path to the registry key that contains data.

Remarks

You can save SpellChecker options in the following root keys:

  • “HKEY_CLASSES_ROOT”
  • “HKEY_CURRENT_USER” (default key)
  • “HKEY_USERS”
  • “HKEY_LOCAL_MACHINE”
  • “HKEY_CURRENT_CONFIG”

Use the following code to save data to the “Test\Spelling” path in the “HKEY_CURRENT_USER” root key:

spellChecker1.SaveToRegistry(@"Test\Spelling");

The code sample below saves data to the “SOFTWARE\Test\Spelling” path in the “HKEY_LOCAL_MACHINE” root key:

spellChecker1.SaveToRegistry("HKEY_LOCAL_MACHINE\\SOFTWARE\\Test\\Spelling");

Note

Before saving to the RegistryKey, make sure you have permission to write to the corresponding registry.

When you call the SaveToRegistry method, the SpellChecker uses the RegistryXtraSerializer to serialize data. This serializer searches the key by the specified path, removes the key if it is found, creates a new key, and saves data.

Call the SpellChecker.RestoreFromRegistry method to restore saved options.

See Also