If the Dialog property is not null, then the error is about to be displayed in a spell dialog. Setting the Cancel parameter to true in this case causes the dialog to skip to the next error.
If the Dialog property is null, then the error was detected in as-you-type mode and the word is about to be underlined. Setting the Cancel parameter to true in this case prevents the word from being underlined.