ISpellChecker::add_SpellCheckerChanged method

Adds an event handler (ISpellCheckerChangedEventHandler) for the SpellCheckerChanged event.

Syntax


HRESULT add_SpellCheckerChanged(
  [in]           ISpellCheckerChangedEventHandler *handler,
  [out, retval]  DWORD *eventCookie
);

Parameters

handler [in]

The handler to invoke when the spell checker changes.

eventCookie [out, retval]

An event cookie that uniquely identifies the added handler. This cookie must be passed to remove_SpellCheckerChanged to stop this handler from being invoked by spell checker changes.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The SpellCheckerChanged event fires whenever the state of the spell checker changes in a way such that any text that has been checked should be rechecked. This should happen when the contents of a word list changes, when an option changes, or when the default spell checker changes.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Spellcheck.h

IDL

Spellcheck.idl

See also

ISpellChecker
remove_SpellCheckerChanged
ISpellCheckerChangedEventHandler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.