Example #1
0
        /// <summary>
        /// Add the specified |word| to the spelling dictionary.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
        /// </remarks>
        public void AddWordToDictionary(string word)
        {
            var word_pinned = new PinnedString(word);

            CfxApi.cfx_browser_host_add_word_to_dictionary(NativePtr, word_pinned.Obj.PinnedPtr, word_pinned.Length);
            word_pinned.Obj.Free();
        }