1
如何更改此功能,以便在字符「E」和「F」之間選擇字符文檔中的字符範圍(如果有); xasdasdEcdscasdcFvfvsdfv被強調到我的範圍 - > cdscasdc按字符串選擇範圍
private void Rango()
{
Word.Range rng;
Word.Document document = this.Application.ActiveDocument;
object startLocation = "E";
object endLocation = "F";
// Supply a Start and End value for the Range.
rng = document.Range(ref startLocation, ref endLocation);
// Select the Range.
rng.Select();
}
此功能不會讓我引用字符串類型的兩個對象通過.......
感謝