Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalSpellCheckSuggestion
: public IUnknown
Represents a spelling correction that can be applied through ICoreWebView2ContextMenuRequestedEventArgs::put_SelectedCommandId.
Summary
| Members | Descriptions |
|---|---|
| get_CommandId | Gets the opaque command ID used to apply this correction. |
| get_SuggestionText | Gets the browser-generated spelling correction text. |
The object remains readable while retained. Its CommandId is valid only for the originating context menu request and must be assigned before that request's deferral is completed.
Applies to
| Product | Introduced |
|---|---|
| WebView2 Win32 | N/A |
| WebView2 Win32 Prerelease |
Members
get_CommandId
Gets the opaque command ID used to apply this correction.
public HRESULT get_CommandId(INT32 * value)
Assign this value to ICoreWebView2ContextMenuRequestedEventArgs::put_SelectedCommandId before completing the context menu deferral. Do not invent, modify, or retain this value for a later context menu request. Suggestion and context menu item command IDs share the originating request's command namespace. Equal IDs identify the same command, so do not assume this value differs from every ICoreWebView2ContextMenuItem::get_CommandId in that request.
get_SuggestionText
Gets the browser-generated spelling correction text.
public HRESULT get_SuggestionText(LPWSTR * value)
The caller must free the returned string with CoTaskMemFree. See API Conventions.