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!