c# - how to add many colors to single paragraph -


i try make multi color in same line list wrong result

i need make below image :

enter image description here

my current code :

paragraph = range.paragraphs.add(); paragraph.range.text = "test"; paragraph.range.font.color = word.wdcolor.wdcolorskyblue;  paragraph = range.paragraphs.add(); paragraph.range.text = "word"; paragraph.range.font.color = word.wdcolor.wdcolorred;  paragraph = range.paragraphs.add(); paragraph.range.text = "color"; paragraph.range.font.color = word.wdcolor.wdcolorbrown; 

the result show 3 lines

since need 50 rep comment, i'll mark answer. reading, should make sentence class , when you're done sentence add paragraph.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -