Text.ReplaceRange
语法
Text.ReplaceRange(text as nullable text, offset as number, count as number, newText as text) as nullable text
关于
返回从文本值 text
中的位置 offset
开始删除一些字符 count
,然后在 text
中的相同位置插入文本值 newText
的结果。
示例 1
使用新文本值“CDE”替换文本值“ABGF”中位置 2 的单个字符。
使用情况
Text.ReplaceRange("ABGF", 2, 1, "CDE")
输出
"ABCDEF"
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈