• <menu id="w2i4a"></menu>
  • logo Aspose中文文檔

    文檔首頁>>Aspose中文文檔>>查找和替換文本

    查找和替換文本


    Aspose.Words是一種高級(jí)Word文檔處理API,用于執(zhí)行各種文檔管理和操作任務(wù)。API支持生成,修改,轉(zhuǎn)換,呈現(xiàn)和打印文檔,而無需在跨平臺(tái)應(yīng)用程序中直接使用Microsoft Word。

    Aspose API支持流行文件格式處理,并允許將各類文檔導(dǎo)出或轉(zhuǎn)換為固定布局文件格式和最常用的圖像/多媒體格式。

    Aspose.Words for .NET 最新下載

    VSTO

    Word.Application wordApp = Application;
    wordApp.Documents.Open("Search and Replace.doc");
    object replaceAll = Word.WdReplace.wdReplaceAll;
    this.Application.Selection.Find.ClearFormatting();
    this.Application.Selection.Find.Text = "find me";
    this.Application.Selection.Find.Replacement.ClearFormatting();
    this.Application.Selection.Find.Replacement.Text = "Found";
    this.Application.Selection.Find.Execute(
    ref missing, ref missing, ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing, ref missing, ref missing,
    ref replaceAll, ref missing, ref missing, ref missing, ref missing);

    點(diǎn)擊復(fù)制

    Aspose.Words

    Document doc = new Document("Search and Replace.doc");
    doc.Range.Replace("find me", "found", false, true);
    doc.Save("Search and Replace.doc");

    點(diǎn)擊復(fù)制

    下載示例代碼

    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();