1
您能解釋一下doc.Content.Text和doc.Range之間的區別(開始,結束)。文本doc.Content.Text和doc.Range之間的區別是什麼(開始,結束).Text
其實,如果我像提取
doc.Content.Text.SubString(啓動,lenofText)
一個字符串,如果我做同樣的
doc.Range(啓動,啓動+ lenofText)
我得到正確的結果爲doc.Content.Text,但與doc.Range不正確的結果...你知道原因嗎?我需要找到一個文本,然後將其轉換爲Hyper LINK,但doc.Range不會給我正確的結果...
範圍的單位不是字符 - 而是任何可出現在範圍內的Word實體。如果你嘗試過'doc.Range().Text.Substring(start,lenOfText)',你會得到相同的結果。 – BrainSlugs83 2013-12-09 20:48:30