My text is in a richtextbox:
<Parag1 Level="One">
First text of parag1. Second text of parag1.
</Parag1>
<Parag2 Level="Two">
First text of parag2. Second text of parag2.
</Parag2>
<Parag3 Level="Footer">
First text of parag3. Second text of parag3.
</Parag3>
<Parag4 Level="Three">
First text of parag4. Second text of parag4.
</Parag4>
I want change color font & text color of text :
1- For tags -> font name = Tahoma , size= 10,color=red
Example : <Parag1 Level="One">
Or </Parag1>
2- For Text between tags that tag's level is not Footer -> font name = Arial , size= 12,color=black
Example : First text of parag1. Second text of parag1.
Or First text of parag4. Second text of parag4.
3- For Text between tags that tag's level is Footer -> font name = Microsoft Sans Serif, size= 8,color=blue
Example : First text of parag3. Second text of parag3.
How can I do it in c# ?(Changes font of all text at once!)