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
210
UltraFormattedTextEditor - SetCurrentStyle?
posted

Looking at the function UltraFormattedTextEditor.EditInfo.GetCurrentStyle() I'm wondering if there's any way to do the opposite -> SetCurrentStyle?

My goal is to clear a certain style from the current state style. Toggling bold on/off by using the UltraFormattedTextEditor.PerformAction() doesn't work as it only sets the current state style to font-weight:bold or font-weight:normal. I want it completely cleared.

Using UltraFormattedTextEditor.EditInfo.ClearStyleAttributes() works for this when text is selected but I want to change the current state style for the caret meaning it will be applied for the next typed char.