How to clear “temporary” (tomApplyTmp) formatting from a RichEdit?How can I develop for iPhone using a Windows development machine?How can you find out which process is listening on a port on Windows?How do I get the application exit code from a Windows command line?How to clear the interpreter console?How to change underlining color in a Rich Edit control (Win32/C)RichEdit VCL and URLs. Workarounds for OnPaint IssuesImplementing a rich text editor in Android?How do I install pip on Windows?List all environment variables from command line?How to make TRichEdit behave like WordPad on Windows 7 when changing font for certain non-text characters?

Just how much information should you share with a former client?

How would a lunar colony attack Earth?

Why tantalum for the Hayabusa bullets?

How do discovery writers hibernate?

Would it take any sort of amendment to make DC a state?

Why did Windows 95 crash the whole system but newer Windows only crashed programs?

How does Asimov's second law deal with contradictory orders from different people?

Can a US President, after impeachment and removal, be re-elected or re-appointed?

Prepare a user to perform an action before proceeding to the next step

How to choose using Collection<Id> rather than Collection<String>, or the opposite?

Correct word for a little toy that always stands up?

Move arrows along a contour

Was the Psych theme song written for the show?

What would the United Kingdom's "optimal" Brexit deal look like?

What is my clock telling me to do?

Did Vladimir Lenin have a cat?

What is a good example for artistic ND filter applications?

What clothes would flying-people wear?

Why would anyone ever invest in a cash-only etf?

Complaints from (junior) developers against solution architects: how can we show the benefits of our work and improve relationships?

How can Paypal know my card is being used in another account?

What are the cons of stateless password generators?

"DDoouubbllee ssppeeaakk!!"

Can living where Earth magnet ore is abundent provide any protection?



How to clear “temporary” (tomApplyTmp) formatting from a RichEdit?


How can I develop for iPhone using a Windows development machine?How can you find out which process is listening on a port on Windows?How do I get the application exit code from a Windows command line?How to clear the interpreter console?How to change underlining color in a Rich Edit control (Win32/C)RichEdit VCL and URLs. Workarounds for OnPaint IssuesImplementing a rich text editor in Android?How do I install pip on Windows?List all environment variables from command line?How to make TRichEdit behave like WordPad on Windows 7 when changing font for certain non-text characters?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















In the 2015 blog post RichEdit Colors🕗, Microsoft developer Murray Sargent noted that the RichEdit controlsupports "temporary" formatting; used by spell checkers and IME editors:




Temp formatting



IMEs and proofing tools like to use character
formatting such as squiggly underlines and special colors to indicate
specialized text treatment, e.g., a spelling error. To avoid changing
the underlying character formatting, RichEdit provides temporary
formatting of underline type and color, and foreground and background
colors. When such formatting is removed, the original formatting is
used again for display.
Temporary formatting isn’t persisted in file
formats and can’t be read out by the client, only applied.



To define temporary formatting properties, call
ITextFont::Reset(tomApplyTmp) or ITextFont::Reset(tomApplyIMETmp) for
proofing or IME purposes, respectively. Then specify the temporary
formatting colors by calling ITextFont::SetForeColor() and
ITextFont::SetBackColor() as desired. Specify the temporary underline
color and type by calling ITextFont::SetUnderline(value). Specifically
if value = tomAutoColor, autocolor (default text color) is used. If
(0xFF000000 & value) = 0xFF000000, the temporary underline color is
set to 0x00FFFFFF & value. Else if value is a valid underline type,
the temporary underline type is set to value. To apply the temporary
formatting so defined, call ITextFont->Reset(tomApplyNow). If a
temporary formatting property isn’t defined, the corresponding
original property is used.




emphasis mine



How do you actually remove the "temporary" formatting?



To apply temporary formatting to a block of text:



ITextRange range = textDocument.Range(0, 5); //startIndex, endIndex
ITextFont font = range.Font();
font.Reset(tomApplyTmp);
font.Underline = tomWave; //red wavy underline
font.Underline = 0xFF0000FF; //and make the wavy underline red
font.Reset(tomApplyNow);


In 2012 he noted🕗 that the RichEdit has supported these things - the Text Object Model - for years (i.e. it was introduced with Window XP SP1):




RichEdit Spell Checking, Autocorrection and Prediction



RichEdit has provided support for client spell checking (TOM object model and temporary character formatting—see tomApplyTmp) and autocorrect (see EM_SETAUTOCORRECTPROC) for many years. But it has been the RichEdit client’s responsibility to access the spell-checking and autocorrection components, except for the built-in math autocorrect option. For clients like OneNote and Outlook, such a responsibility is a small part of the app. But for little programs, accessing proofing components can be arduous. This would be especially true for small apps written using Windows RT.




I can figure out how to apply temporary formatting to a text block:



//Get ITextDocument interface for the RichEdit control 
IRichEditOle ole;
SendMessage(RichEdit.Handle, EM_GETOLEINTERFACE, 0, out ole);
ITextDocument doc = ole as ITextDocument;


ITextRange range = doc.Range(spellingError.StartIndex, spellingError.EndIndex);
ITextFont font = range.Font();
font.Reset(tomApplyTmp);
font.Underline = tomWave;
font.Underline = 0xFF0000FF; //and make the wavy underline red
font.Reset(tomApplyNow);


But what i can't figure out is how to clear all existing temporary formatting.



I tried to "select everything and apply nothing":



ITextRange range = doc.Range(0, TextLength); //start index, end index
ITextFont font = range.Font();
font.Reset(tomApplyTmp);
font.Underline = tomNone;
font.Reset(tomApplyNow);


But that just left existing temporary formatting as it was.



Note: In 2015 Remy Lebeau🕗 (@RemyLebeau) noted that the Text Services object model requires MsftEdit.dll (i.e. Microsoft Edit v4.1)



Bonus Chatter



The Rich Edit was introduced with Windows 95, and originally had the Windows class name:



RICHEDIT_CLASS = "RichEdit"


Over the years it was improved, but gained new class names, sitting in new dlls, to maintain backwards compatibility.



Windows XP SP1 saw the introduction of the new "Microsoft Edit" class, living in "MsftEdit.dll"



Version Dll Class name const Class name string OS
============ ============ ================ ============================ ===========
RichEdit 1.0 Riched32.dll RICHEDIT_CLASS "RICHEDIT" Windows 95
RichEdit 2.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 98
RichEdit 3.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 2000 (with RichEdit 1.0 emulator
RichEdit 4.1 Msftedit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows XP SP1 (with RichEdit 1.0 emulator)
RichEdit 7.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 8
RichEdit 8.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 10


And so "Microsoft Edit" is the thing you should be using (and need to be using for Text Services), and not a "Rich Edit".



The Microsoft Edit gets updated with newer versions of the OS:



Windowx XP: File description: Rich Text Edit Control, v4.1
Windows Vista: File description: Rich Text Edit Control, v4.1
Windows 7: File description: Rich Text Edit Control, v4.1
Windows 8: File description: Rich Text Edit Control, v7.5
Windows 10: File description: Rich Text Edit Control, v8.5


With Windows 8, the Microsoft Edit control gained the ability to automatically have spell-checking support (since Windows 8 added a SpellCheck API).










share|improve this question
































    2















    In the 2015 blog post RichEdit Colors🕗, Microsoft developer Murray Sargent noted that the RichEdit controlsupports "temporary" formatting; used by spell checkers and IME editors:




    Temp formatting



    IMEs and proofing tools like to use character
    formatting such as squiggly underlines and special colors to indicate
    specialized text treatment, e.g., a spelling error. To avoid changing
    the underlying character formatting, RichEdit provides temporary
    formatting of underline type and color, and foreground and background
    colors. When such formatting is removed, the original formatting is
    used again for display.
    Temporary formatting isn’t persisted in file
    formats and can’t be read out by the client, only applied.



    To define temporary formatting properties, call
    ITextFont::Reset(tomApplyTmp) or ITextFont::Reset(tomApplyIMETmp) for
    proofing or IME purposes, respectively. Then specify the temporary
    formatting colors by calling ITextFont::SetForeColor() and
    ITextFont::SetBackColor() as desired. Specify the temporary underline
    color and type by calling ITextFont::SetUnderline(value). Specifically
    if value = tomAutoColor, autocolor (default text color) is used. If
    (0xFF000000 & value) = 0xFF000000, the temporary underline color is
    set to 0x00FFFFFF & value. Else if value is a valid underline type,
    the temporary underline type is set to value. To apply the temporary
    formatting so defined, call ITextFont->Reset(tomApplyNow). If a
    temporary formatting property isn’t defined, the corresponding
    original property is used.




    emphasis mine



    How do you actually remove the "temporary" formatting?



    To apply temporary formatting to a block of text:



    ITextRange range = textDocument.Range(0, 5); //startIndex, endIndex
    ITextFont font = range.Font();
    font.Reset(tomApplyTmp);
    font.Underline = tomWave; //red wavy underline
    font.Underline = 0xFF0000FF; //and make the wavy underline red
    font.Reset(tomApplyNow);


    In 2012 he noted🕗 that the RichEdit has supported these things - the Text Object Model - for years (i.e. it was introduced with Window XP SP1):




    RichEdit Spell Checking, Autocorrection and Prediction



    RichEdit has provided support for client spell checking (TOM object model and temporary character formatting—see tomApplyTmp) and autocorrect (see EM_SETAUTOCORRECTPROC) for many years. But it has been the RichEdit client’s responsibility to access the spell-checking and autocorrection components, except for the built-in math autocorrect option. For clients like OneNote and Outlook, such a responsibility is a small part of the app. But for little programs, accessing proofing components can be arduous. This would be especially true for small apps written using Windows RT.




    I can figure out how to apply temporary formatting to a text block:



    //Get ITextDocument interface for the RichEdit control 
    IRichEditOle ole;
    SendMessage(RichEdit.Handle, EM_GETOLEINTERFACE, 0, out ole);
    ITextDocument doc = ole as ITextDocument;


    ITextRange range = doc.Range(spellingError.StartIndex, spellingError.EndIndex);
    ITextFont font = range.Font();
    font.Reset(tomApplyTmp);
    font.Underline = tomWave;
    font.Underline = 0xFF0000FF; //and make the wavy underline red
    font.Reset(tomApplyNow);


    But what i can't figure out is how to clear all existing temporary formatting.



    I tried to "select everything and apply nothing":



    ITextRange range = doc.Range(0, TextLength); //start index, end index
    ITextFont font = range.Font();
    font.Reset(tomApplyTmp);
    font.Underline = tomNone;
    font.Reset(tomApplyNow);


    But that just left existing temporary formatting as it was.



    Note: In 2015 Remy Lebeau🕗 (@RemyLebeau) noted that the Text Services object model requires MsftEdit.dll (i.e. Microsoft Edit v4.1)



    Bonus Chatter



    The Rich Edit was introduced with Windows 95, and originally had the Windows class name:



    RICHEDIT_CLASS = "RichEdit"


    Over the years it was improved, but gained new class names, sitting in new dlls, to maintain backwards compatibility.



    Windows XP SP1 saw the introduction of the new "Microsoft Edit" class, living in "MsftEdit.dll"



    Version Dll Class name const Class name string OS
    ============ ============ ================ ============================ ===========
    RichEdit 1.0 Riched32.dll RICHEDIT_CLASS "RICHEDIT" Windows 95
    RichEdit 2.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 98
    RichEdit 3.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 2000 (with RichEdit 1.0 emulator
    RichEdit 4.1 Msftedit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows XP SP1 (with RichEdit 1.0 emulator)
    RichEdit 7.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 8
    RichEdit 8.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 10


    And so "Microsoft Edit" is the thing you should be using (and need to be using for Text Services), and not a "Rich Edit".



    The Microsoft Edit gets updated with newer versions of the OS:



    Windowx XP: File description: Rich Text Edit Control, v4.1
    Windows Vista: File description: Rich Text Edit Control, v4.1
    Windows 7: File description: Rich Text Edit Control, v4.1
    Windows 8: File description: Rich Text Edit Control, v7.5
    Windows 10: File description: Rich Text Edit Control, v8.5


    With Windows 8, the Microsoft Edit control gained the ability to automatically have spell-checking support (since Windows 8 added a SpellCheck API).










    share|improve this question




























      2












      2








      2


      1






      In the 2015 blog post RichEdit Colors🕗, Microsoft developer Murray Sargent noted that the RichEdit controlsupports "temporary" formatting; used by spell checkers and IME editors:




      Temp formatting



      IMEs and proofing tools like to use character
      formatting such as squiggly underlines and special colors to indicate
      specialized text treatment, e.g., a spelling error. To avoid changing
      the underlying character formatting, RichEdit provides temporary
      formatting of underline type and color, and foreground and background
      colors. When such formatting is removed, the original formatting is
      used again for display.
      Temporary formatting isn’t persisted in file
      formats and can’t be read out by the client, only applied.



      To define temporary formatting properties, call
      ITextFont::Reset(tomApplyTmp) or ITextFont::Reset(tomApplyIMETmp) for
      proofing or IME purposes, respectively. Then specify the temporary
      formatting colors by calling ITextFont::SetForeColor() and
      ITextFont::SetBackColor() as desired. Specify the temporary underline
      color and type by calling ITextFont::SetUnderline(value). Specifically
      if value = tomAutoColor, autocolor (default text color) is used. If
      (0xFF000000 & value) = 0xFF000000, the temporary underline color is
      set to 0x00FFFFFF & value. Else if value is a valid underline type,
      the temporary underline type is set to value. To apply the temporary
      formatting so defined, call ITextFont->Reset(tomApplyNow). If a
      temporary formatting property isn’t defined, the corresponding
      original property is used.




      emphasis mine



      How do you actually remove the "temporary" formatting?



      To apply temporary formatting to a block of text:



      ITextRange range = textDocument.Range(0, 5); //startIndex, endIndex
      ITextFont font = range.Font();
      font.Reset(tomApplyTmp);
      font.Underline = tomWave; //red wavy underline
      font.Underline = 0xFF0000FF; //and make the wavy underline red
      font.Reset(tomApplyNow);


      In 2012 he noted🕗 that the RichEdit has supported these things - the Text Object Model - for years (i.e. it was introduced with Window XP SP1):




      RichEdit Spell Checking, Autocorrection and Prediction



      RichEdit has provided support for client spell checking (TOM object model and temporary character formatting—see tomApplyTmp) and autocorrect (see EM_SETAUTOCORRECTPROC) for many years. But it has been the RichEdit client’s responsibility to access the spell-checking and autocorrection components, except for the built-in math autocorrect option. For clients like OneNote and Outlook, such a responsibility is a small part of the app. But for little programs, accessing proofing components can be arduous. This would be especially true for small apps written using Windows RT.




      I can figure out how to apply temporary formatting to a text block:



      //Get ITextDocument interface for the RichEdit control 
      IRichEditOle ole;
      SendMessage(RichEdit.Handle, EM_GETOLEINTERFACE, 0, out ole);
      ITextDocument doc = ole as ITextDocument;


      ITextRange range = doc.Range(spellingError.StartIndex, spellingError.EndIndex);
      ITextFont font = range.Font();
      font.Reset(tomApplyTmp);
      font.Underline = tomWave;
      font.Underline = 0xFF0000FF; //and make the wavy underline red
      font.Reset(tomApplyNow);


      But what i can't figure out is how to clear all existing temporary formatting.



      I tried to "select everything and apply nothing":



      ITextRange range = doc.Range(0, TextLength); //start index, end index
      ITextFont font = range.Font();
      font.Reset(tomApplyTmp);
      font.Underline = tomNone;
      font.Reset(tomApplyNow);


      But that just left existing temporary formatting as it was.



      Note: In 2015 Remy Lebeau🕗 (@RemyLebeau) noted that the Text Services object model requires MsftEdit.dll (i.e. Microsoft Edit v4.1)



      Bonus Chatter



      The Rich Edit was introduced with Windows 95, and originally had the Windows class name:



      RICHEDIT_CLASS = "RichEdit"


      Over the years it was improved, but gained new class names, sitting in new dlls, to maintain backwards compatibility.



      Windows XP SP1 saw the introduction of the new "Microsoft Edit" class, living in "MsftEdit.dll"



      Version Dll Class name const Class name string OS
      ============ ============ ================ ============================ ===========
      RichEdit 1.0 Riched32.dll RICHEDIT_CLASS "RICHEDIT" Windows 95
      RichEdit 2.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 98
      RichEdit 3.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 2000 (with RichEdit 1.0 emulator
      RichEdit 4.1 Msftedit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows XP SP1 (with RichEdit 1.0 emulator)
      RichEdit 7.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 8
      RichEdit 8.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 10


      And so "Microsoft Edit" is the thing you should be using (and need to be using for Text Services), and not a "Rich Edit".



      The Microsoft Edit gets updated with newer versions of the OS:



      Windowx XP: File description: Rich Text Edit Control, v4.1
      Windows Vista: File description: Rich Text Edit Control, v4.1
      Windows 7: File description: Rich Text Edit Control, v4.1
      Windows 8: File description: Rich Text Edit Control, v7.5
      Windows 10: File description: Rich Text Edit Control, v8.5


      With Windows 8, the Microsoft Edit control gained the ability to automatically have spell-checking support (since Windows 8 added a SpellCheck API).










      share|improve this question
















      In the 2015 blog post RichEdit Colors🕗, Microsoft developer Murray Sargent noted that the RichEdit controlsupports "temporary" formatting; used by spell checkers and IME editors:




      Temp formatting



      IMEs and proofing tools like to use character
      formatting such as squiggly underlines and special colors to indicate
      specialized text treatment, e.g., a spelling error. To avoid changing
      the underlying character formatting, RichEdit provides temporary
      formatting of underline type and color, and foreground and background
      colors. When such formatting is removed, the original formatting is
      used again for display.
      Temporary formatting isn’t persisted in file
      formats and can’t be read out by the client, only applied.



      To define temporary formatting properties, call
      ITextFont::Reset(tomApplyTmp) or ITextFont::Reset(tomApplyIMETmp) for
      proofing or IME purposes, respectively. Then specify the temporary
      formatting colors by calling ITextFont::SetForeColor() and
      ITextFont::SetBackColor() as desired. Specify the temporary underline
      color and type by calling ITextFont::SetUnderline(value). Specifically
      if value = tomAutoColor, autocolor (default text color) is used. If
      (0xFF000000 & value) = 0xFF000000, the temporary underline color is
      set to 0x00FFFFFF & value. Else if value is a valid underline type,
      the temporary underline type is set to value. To apply the temporary
      formatting so defined, call ITextFont->Reset(tomApplyNow). If a
      temporary formatting property isn’t defined, the corresponding
      original property is used.




      emphasis mine



      How do you actually remove the "temporary" formatting?



      To apply temporary formatting to a block of text:



      ITextRange range = textDocument.Range(0, 5); //startIndex, endIndex
      ITextFont font = range.Font();
      font.Reset(tomApplyTmp);
      font.Underline = tomWave; //red wavy underline
      font.Underline = 0xFF0000FF; //and make the wavy underline red
      font.Reset(tomApplyNow);


      In 2012 he noted🕗 that the RichEdit has supported these things - the Text Object Model - for years (i.e. it was introduced with Window XP SP1):




      RichEdit Spell Checking, Autocorrection and Prediction



      RichEdit has provided support for client spell checking (TOM object model and temporary character formatting—see tomApplyTmp) and autocorrect (see EM_SETAUTOCORRECTPROC) for many years. But it has been the RichEdit client’s responsibility to access the spell-checking and autocorrection components, except for the built-in math autocorrect option. For clients like OneNote and Outlook, such a responsibility is a small part of the app. But for little programs, accessing proofing components can be arduous. This would be especially true for small apps written using Windows RT.




      I can figure out how to apply temporary formatting to a text block:



      //Get ITextDocument interface for the RichEdit control 
      IRichEditOle ole;
      SendMessage(RichEdit.Handle, EM_GETOLEINTERFACE, 0, out ole);
      ITextDocument doc = ole as ITextDocument;


      ITextRange range = doc.Range(spellingError.StartIndex, spellingError.EndIndex);
      ITextFont font = range.Font();
      font.Reset(tomApplyTmp);
      font.Underline = tomWave;
      font.Underline = 0xFF0000FF; //and make the wavy underline red
      font.Reset(tomApplyNow);


      But what i can't figure out is how to clear all existing temporary formatting.



      I tried to "select everything and apply nothing":



      ITextRange range = doc.Range(0, TextLength); //start index, end index
      ITextFont font = range.Font();
      font.Reset(tomApplyTmp);
      font.Underline = tomNone;
      font.Reset(tomApplyNow);


      But that just left existing temporary formatting as it was.



      Note: In 2015 Remy Lebeau🕗 (@RemyLebeau) noted that the Text Services object model requires MsftEdit.dll (i.e. Microsoft Edit v4.1)



      Bonus Chatter



      The Rich Edit was introduced with Windows 95, and originally had the Windows class name:



      RICHEDIT_CLASS = "RichEdit"


      Over the years it was improved, but gained new class names, sitting in new dlls, to maintain backwards compatibility.



      Windows XP SP1 saw the introduction of the new "Microsoft Edit" class, living in "MsftEdit.dll"



      Version Dll Class name const Class name string OS
      ============ ============ ================ ============================ ===========
      RichEdit 1.0 Riched32.dll RICHEDIT_CLASS "RICHEDIT" Windows 95
      RichEdit 2.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 98
      RichEdit 3.0 Riched20.dll RICHEDIT_CLASS "RichEdit20A", "RichEdit20W" Windows 2000 (with RichEdit 1.0 emulator
      RichEdit 4.1 Msftedit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows XP SP1 (with RichEdit 1.0 emulator)
      RichEdit 7.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 8
      RichEdit 8.5 MsftEdit.dll MSFTEDIT_CLASS "RICHEDIT50W" Windows 10


      And so "Microsoft Edit" is the thing you should be using (and need to be using for Text Services), and not a "Rich Edit".



      The Microsoft Edit gets updated with newer versions of the OS:



      Windowx XP: File description: Rich Text Edit Control, v4.1
      Windows Vista: File description: Rich Text Edit Control, v4.1
      Windows 7: File description: Rich Text Edit Control, v4.1
      Windows 8: File description: Rich Text Edit Control, v7.5
      Windows 10: File description: Rich Text Edit Control, v8.5


      With Windows 8, the Microsoft Edit control gained the ability to automatically have spell-checking support (since Windows 8 added a SpellCheck API).







      windows windows-10 richedit windows-xp-sp2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 9 at 20:31







      Ian Boyd

















      asked Mar 26 at 21:21









      Ian BoydIan Boyd

      127k198 gold badges710 silver badges1026 bronze badges




      127k198 gold badges710 silver badges1026 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          1














          That's strange. I'm doing something similar (thanks to your post, because coherent documentation for this is extremely hard to find) and have no problem resetting the temporary styles in the same way you write, with the only difference being that I use C++:



          doc->Range(5, 15, &range);
          range->GetFont(&font);
          font->Reset(tomApplyTmp);
          font->SetUnderline(tomNone);
          font->Reset(tomApplyNow);





          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366383%2fhow-to-clear-temporary-tomapplytmp-formatting-from-a-richedit%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            That's strange. I'm doing something similar (thanks to your post, because coherent documentation for this is extremely hard to find) and have no problem resetting the temporary styles in the same way you write, with the only difference being that I use C++:



            doc->Range(5, 15, &range);
            range->GetFont(&font);
            font->Reset(tomApplyTmp);
            font->SetUnderline(tomNone);
            font->Reset(tomApplyNow);





            share|improve this answer





























              1














              That's strange. I'm doing something similar (thanks to your post, because coherent documentation for this is extremely hard to find) and have no problem resetting the temporary styles in the same way you write, with the only difference being that I use C++:



              doc->Range(5, 15, &range);
              range->GetFont(&font);
              font->Reset(tomApplyTmp);
              font->SetUnderline(tomNone);
              font->Reset(tomApplyNow);





              share|improve this answer



























                1












                1








                1







                That's strange. I'm doing something similar (thanks to your post, because coherent documentation for this is extremely hard to find) and have no problem resetting the temporary styles in the same way you write, with the only difference being that I use C++:



                doc->Range(5, 15, &range);
                range->GetFont(&font);
                font->Reset(tomApplyTmp);
                font->SetUnderline(tomNone);
                font->Reset(tomApplyNow);





                share|improve this answer













                That's strange. I'm doing something similar (thanks to your post, because coherent documentation for this is extremely hard to find) and have no problem resetting the temporary styles in the same way you write, with the only difference being that I use C++:



                doc->Range(5, 15, &range);
                range->GetFont(&font);
                font->Reset(tomApplyTmp);
                font->SetUnderline(tomNone);
                font->Reset(tomApplyNow);






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 9 at 10:41









                Václav SlavíkVáclav Slavík

                4,9752 gold badges20 silver badges22 bronze badges




                4,9752 gold badges20 silver badges22 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366383%2fhow-to-clear-temporary-tomapplytmp-formatting-from-a-richedit%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현