TextRange.Paste 方法 (PowerPoint)

将剪贴板上的文本粘贴到指定的文本范围中,并返回一个代表粘贴文本的 TextRange 对象。

语法

表达式粘贴

表达 一个代表 TextRange 对象的变量。

返回值

TextRange

备注

将剪贴板内容粘贴到窗口中之前,请使用 ViewType 属性设置窗口视图。 下表显示了可以粘贴到每个视图中的内容。

视图 可以从剪贴板中粘贴以下内容
幻灯片视图或备注页视图 Shapes, text, or entire slides. If you paste a slide from the Clipboard, an image of the slide will be inserted onto the slide, master, or notes page as an embedded object. If one shape is selected, the pasted text will be appended to the shape's text; if text is selected, the pasted text will replace the selection; if anything else is selected, the pasted text will be placed in it is own text frame. Pasted shapes will be added to the top of the z-order and won't replace selected shapes.
大纲视图 文本或整张幻灯片。 不能向大纲视图粘贴形状。 粘贴的幻灯片将被插到光标所在的幻灯片之前。
幻灯片浏览视图 整张幻灯片。 不能向幻灯片浏览视图粘贴形状或文本。 粘贴的幻灯片将被插到光标处或演示文稿中最后选中的一张幻灯片之后。

另请参阅

TextRange 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。