I'm working in wpf and visual basic. When I select text in RichTextBox i use TextRange:
Code:
Later:Code:dim selection1 as New TextRange(Richtextbox.selection.start,Richtextbox.selection.end)
Code:
When I am marking text many times the color changes also in the previous selections. I want change color only last selection. How to do this?Code:selection1.ApplyPropertyValue(ForegroundProperty, brushes.Red)