[]
        
(Showing Draft Content)

C1.WPF.SpellChecker.UserDictionary.SaveToIsolatedStorage

SaveToIsolatedStorage Method

SaveToIsolatedStorage(string, IsolatedStorageScope, Type, Type)

Saves the dictionary into a compressed file in isolated storage.

Declaration
public void SaveToIsolatedStorage(string fileName, IsolatedStorageScope scope = IsolatedStorageScope.User | IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly, Type domainEvidenceType = null, Type assemblyEvidenceType = null)
Parameters
Type Name Description
string fileName

Name of the file to save.

IsolatedStorageScope scope

Isolated storage scope

Type domainEvidenceType

Domain evidence type

Type assemblyEvidenceType

Assembly evidence type

Remarks

This method is used to save user dictionaries that were modified during the spell checking process. It is normally invoked only once, before the applications exits.

Examples
public Page()
{
  InitializeComponent();

  // load user dictionary
  UserDictionary ud = c1SpellChecker1.UserDictionary;
  ud.LoadFromIsolatedStorage("Custom.dct");

  // save user dictionary when app exits
  App.Current.Exit += App_Exit; 
}
void App_Exit(object sender, EventArgs e)
{
  // save modified user dictionary
  UserDictionary ud = c1SpellChecker1.UserDictionary;
  ud.SaveToIsolatedStorage("Custom.dct");
}