C#使用Microsoft.Office.Interop.Word操作word书签位置插入Wingdings 2复选框
生活随笔
收集整理的這篇文章主要介紹了
C#使用Microsoft.Office.Interop.Word操作word书签位置插入Wingdings 2复选框
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先要知道要插入的Wingdings 2 字符的16進制編碼,我要插入的是復選框編碼是“0052”,其次重要的是設置Font.Name為“Wingdings 2”
Word.Application word = new Word.Application(); object oStart = "書簽"; Range range = doc.Bookmarks.get_Item(ref oStart).Range; range.Text = "\u0052\u00A3"; range.Font.Name = "Wingdings 2";//注意位置需要在range.Text后word中顯示:
總結
以上是生活随笔為你收集整理的C#使用Microsoft.Office.Interop.Word操作word书签位置插入Wingdings 2复选框的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 6个采购面试必答题,怎样回答比较好?
- 下一篇: C#实现的基于RFID射频卡的学校智能刷