How does this work with WPF?

http://r4r.co.in/c1/01/tutorial/csharp/How%20to%20Change%20The%20Color%20of%20Specific%20Word%20in%20Rich%20textbox%20using%20C-Sharp.shtml