[]
Saves the dictionary into a compressed file in isolated storage.
public void SaveToIsolatedStorage(string fileName, IsolatedStorageScope scope = IsolatedStorageScope.User | IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly, Type domainEvidenceType = null, Type assemblyEvidenceType = null)
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 |
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.
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");
}