Table of contents
TOC
折叠目录
展开目录

ShapeRange.Cut 方法 (发布服务器)ShapeRange.Cut Method (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

删除指定对象并将其放到剪贴板中。Deletes the specified object and places it on the Clipboard.

语法Syntax

表达式剪切expression. Cut

_expression_A 表示一个ShapeRange对象的变量。_expression_A variable that represents a ShapeRange object.

注解Remarks

使用粘贴方法粘贴剪贴板中的内容。Use the Pastemethod to paste the contents of the Clipboard.

Copy方法可用形状的对象,但不能粘贴的方法。The Copy method can be used on Shape objects, but the Paste method cannot.

示例Example

本示例删除当前出版物的第一页上的第一个和第二个形状,将两者的副本放到剪贴板上,再将副本粘贴到第二页上。This example deletes shape one and shape two from page one of the active publication, places copies of them on the Clipboard, and then pastes the copies onto page two.

With ActiveDocument 
 .Pages(1).Shapes.Range(Array(1, 2)).Cut 
 .Pages(2).Shapes.Paste 
End With

以下示例删除当前出版物的第一页上的第一个形状并将其副本放到剪贴板上。This example deletes shape one on page one of the active publication and places a copy of it on the Clipboard.

ActiveDocument
.Pages(1).Shapes(1).Cut

以下示例删除当前出版物的第一页上的第一个形状中的文字并将其副本放到剪贴板上。This example deletes the text in shape one on page one of the active publication and places a copy of it on the Clipboard.

ActiveDocument
.Pages(1).Shapes(1).TextFrame.TextRange.Cut
© 2018 Microsoft