Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
850
How to get the font to change in UltraFormattedTextEditor
posted

I have a bunch of formatted text in a UFTE which have multiple highlights and other formatting, and when I go to change the font for the whole editor only the already formatted areas pick up the change. I have used the ApplyStyles method with everything selected; I have tried to use the Apperances property, but nothing will apply the font change to the whole Control. What should I be using.

 Thanks,

blair

Parents
  • 37774
    posted

     Blair,

    The following code worked for me to apply the style across all my text when nothing was selected:

     this.ultraFormattedTextEditor1.EditInfo.ApplyStyle("font-family:Algerian;", true);

     The original value of the editor was:

    ultra<span style="font-family:Arial;">For</span><span style="font-weight:bold;">matte</span><span style="font-size:+2pt;">dTex</span>tE<span style="text-decoration:underline;">ditor1</span>

     -Matt

Reply Children