UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

生产力活动

替换演示文稿中的文本

UiPath.Presentation.Activities.FindAndReplaceTextInPresentation

描述

将演示文稿中的某个文本替换为另一个文本。此活动必须添加到使用 PowerPoint 演示文稿活动中。

项目兼容性

旧版 | Windows - Legacy(旧版)| Windows - Legacy(旧版) Windows |跨平台

Configuration for Cross-platform projects

设计器面板

  • Presentation - The full path of the PowerPoint file to be used. If the PowerPoint file to be used is located in the project folder, its relative path can be used. Only String variables and strings are supported.
  • Find what - The text to be replaced. Only String variables and strings are supported.
  • Replace with - The text to replace with. Only String variables and strings are supported.
  • 区分大小写 - 如果启用,则仅替换与特定大写字母匹配的文本。
  • 仅替换整个单词 - 如果启用,则仅替换整个单词,而不替换较长单词中的各部分。使用非字母数字字符时,PowerPoint 和 Studio 中会禁用此选项。
  • 全部替换 - 如果启用,将替换所有出现的搜索文本。如果未选择,则仅替换第一个匹配项。

属性面板

输出
  • Number of replacements - The number of replacements that were made.

Configuration for Windows projects

设计器面板

  • 演示文稿 - 设置要在其中搜索和替换文本的 PowerPoint 文件。
  • Find what - The text to be replaced. Only String variables and strings are supported.
  • Replace with - The text to replace with. Only String variables and strings are supported.
  • Match case - If selected, replaces only the text that matches specific capitalization.
  • Whole words only - If selected, replaces only entire words instead of parts of a longer word. This option is disabled in PowerPoint and in Studio when using non-alphanumeric characters.
  • Replace All - If selected, replaces all occurrences of the searched text. If not selected, only the first occurrence is replaced.

属性面板

常见
  • DisplayName - The name displayed for the activity in the Designer panel.
输入
  • 请在活动正文中查看选项。
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • 替换次数 -(可选)保存替换的次数。

Configuration for Windows - Legacy

常见

  • DisplayName - The name displayed for the activity in the Designer panel.

输入

  • Find what - Text to be replaced. Only String variables and strings are supported. Alternatively, in StudioX, select Plus on the right side of the field, and then select one of the options from the menu:
    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,在 Excel 文件中选择一个单元格以使用该单元格中的值。
    • “运行时询问”- 执行项目时提示输入名称。
    • “从剪贴板粘贴”- 将您以前复制的值粘贴到项目中的剪贴板中。
    • “文本”- 在文本生成器中输入文本。
    • Open in Advanced Editor - Enter a VB expression.
  • Presentation - Presentation in which to replace the text. In StudioX, select Plus on the right side of the field, and then select the presentation file in which to replace text. Alternatively, you enter a VB expression.
  • Replace with - The text to replace with. Only String variables and strings are supported. Alternatively, in StudioX, select Plus on the right side of the field, and then select one of the options from the menu:
    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,在 Excel 文件中选择一个单元格以使用该单元格中的值。
    • “运行时询问”- 执行项目时提示输入名称。
    • “从剪贴板粘贴”- 将您以前复制的值粘贴到项目中的剪贴板中。
    • “文本”- 在文本生成器中输入文本。
    • Open in Advanced Editor - Enter a VB expression.
  • Match case - Indicates whether to replace the text that only matches specific capitalization.
  • Whole words only - If selected, indicates that only entire words should be replaced. If not selected, text that is part of a larger word is also replaced. This option is not selected by default.
  • Replace all - If selected, indicates that all occurrences of the text should be replaced. If not selected, only the first occurrence of the text is replaced. This option is selected by default.

其他

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

输出

  • Number of replacements - Optionally, save the number of replacements made. In StudioX, select Plus on the right side of the field, and then select one of the options from the menu:
    • Excel - Saves the value to a cell in an Excel file or the Project Notebook.
    • 复制到剪贴板
      • 将返回的值保存至剪贴板。
    • 保存以便以后使用
      • 提示您提供名称以保存值。之后可以更改名称。
    • Open in Advanced Editor - Enter a VB expression.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新