Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MS Word ドキュメントの書式設定に興味があります。C# でアドインを開発していますが、プログラムで単語の下に波状の赤い線を引く方法を知りたいですか?
現在のコード:
Word.Range targetWord; targetWord.Font.Color = wdColor.wdColorRed;
オブジェクトtargetWordはどこですかRange
targetWord
Range
単語に下線を引くには、次を使用します。
targetWord.Underline = Microsoft.Office.Interop.Word.WdUnderline.wdUnderlineSingle;
参照: http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.range.underline(v=office.11).aspx
Word を使用 = Microsoft.Office.Interop.Word;
単語に色の下線を引くには、次を使用する必要があります。