different format into one single line Interop.word

前端 未结 6 890
深忆病人
深忆病人 2020-12-11 04:45

I\'ve been trying to figure out how to insert 2 different formats into the same paragraph using interop.word in c# like this:

hello planet earth her

6条回答
  •  春和景丽
    2020-12-11 05:33

    Consider usage of Range.Collapse eventually with Microsoft.Office.Interop.Word.WdCollapseDirection.wdCollapseEnd as parameter. That would allow next text to have formatting different than previous text (and next text formatting will not affect formatting of previous one).

提交回复
热议问题