c# - WPF get inserted inline from applypropertyvalue -


i have richtextbox (currichtextcontrol) , change textdecoration of selected text:

textrange range = new textrange(currichtextcontrol.selection.start, currichtextcontrol.selection.end); textdecorationcollection tdc; tdc = textdecorations.overline; range.applypropertyvalue(inline.textdecorationsproperty, tdc);     

wpf ist going create new inline that. lets paragraph containing range consists of 1 inline (or run) prior applying textdecoration. going result in 3 inline elements after that. how can new inline overline? applypropertyvalue not return value or object. have search paragraph manually?

thank you!


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -