Table of contents

Page.PasteSpecial 方法 (Visio)Page.PasteSpecial Method (Visio)

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

插入剪贴板的内容,同时允许您控制所粘贴信息的格式,并建立一个指向源文件(例如,Microsoft Word 文档)的链接(可选)。Inserts the contents of the Clipboard, allowing you to control the format of the pasted information and (optionally) establish a link to the source file (for example, a Microsoft Word document).


表达式PasteSpecial(格式链接DisplayAsIcon )expression . PasteSpecial( Format , Link , DisplayAsIcon )

表达式_一个表示一个Page对象的变量。_expression A variable that represents a Page object.


名称Name必需/可选Required/Optional数据类型Data Type说明Description
格式Format必需RequiredLongLong内部剪贴板格式。The internal Clipboard format.
LinkLink可选OptionalVariantVariant真正建立一个链接的源所粘贴的数据;否则为False (默认值)。如果源数据不适合或不支持链接,则被忽略。True to establish a link to the source of the pasted data; otherwise, False (the default). Ignored if the source data is not suitable for, or does not support, linking.
DisplayAsIconDisplayAsIcon可选OptionalVariantVariant要粘贴的数据显示为图标。否则为False (默认值)。True to display the pasted data as an icon; otherwise, False (the default).

返回值Return Value



若要仅将剪贴板的内容粘贴到对象中,使用粘贴方法。To simply paste the contents of the Clipboard into an object, use the Paste method.

Format_参数的值可以是下列任一项:The value of the _Format argument can be any of the following:

  • VisPasteSpecialCodes的值 (请参见下表)。A value from VisPasteSpecialCodes (see the following table).

  • 任何标准剪贴板格式,例如 CF_TEXT。有关详细信息,请参阅 MSDN (Microsoft Developer Network) 网站上的 Microsoft Platform SDK。Any of the standard Clipboard formats, for example, CF_TEXT. For details, see the Microsoft Platform SDK on MSDN, the Microsoft Developer Network Web site.

  • 从调用RegisterClipboardFormat函数返回的任何值。有关详细信息,请参阅 MSDN 上的 Microsoft 平台 SDK。Any value returned from a call to the RegisterClipboardFormat function. For details, see the Microsoft Platform SDK on MSDN.

请注意 在调用之前 Microsoft Windows 函数,您应该了解如何处理参数和数据类型由 Windows API Dll。 错误地调用的 Windows 函数可能导致无效页错误或其它意外的行为。调用的 Windows 函数的详细信息,请在 MSDN 上中搜索"Windows API"。Note Before calling Microsoft Windows functions, you should understand how arguments and data types are handled by the Windows API DLLs. Incorrectly calling Windows functions may result in invalid page faults or other unexpected behaviors. For more information on calling Windows functions, search for "Windows API" on MSDN.

可能值由VisPasteSpecialCodes在 Visio 类型库声明的_格式_如下表所述。Possible values for Format declared by the Visio type library in VisPasteSpecialCodes are described in the following table.

visPasteBitmapvisPasteBitmap22粘贴位图。Paste bitmap.
visPasteDIBvisPasteDIB88粘贴与设备无关的位图。Paste device-independent bitmap.
visPasteEMFvisPasteEMF1414粘贴增强型图元文件。Paste enhanced metafile.
visPasteHyperlinkvisPasteHyperlink6553865538粘贴超链接。Paste hyperlink.
visPasteInkvisPasteInk6554465544粘贴墨迹数据。Paste Ink data.
visPasteMetafilevisPasteMetafile33粘贴图元文件。Paste metafile.
visPasteOEMTextvisPasteOEMText77粘贴 OEM 文本。Paste OEM text.
visPasteOLEObjectvisPasteOLEObject6553665536粘贴 OLE 对象。Paste OLE object.
visPasteRichTextvisPasteRichText6553765537粘贴格式文本。Paste rich text.
visPasteTextvisPasteText11粘贴 ANSI 文本。Paste ANSI text.
visPasteURLvisPasteURL6553965539粘贴统一资源定位器 (URL)。Paste Uniform Resource Locator (URL).
visPasteVisioIconvisPasteVisioIcon6554365543粘贴 Visio 图标。Paste Visio icon.
visPasteVisioMastersXMLvisPasteVisioMastersXML6554665546粘贴 Visio 主控形状 XML。Paste Visio masters XML.
visPasteVisioMastersvisPasteVisioMasters6554165541粘贴 Visio 主控形状。Paste Visio masters.
visPasteVisioShapesXMLvisPasteVisioShapesXML6554565545粘贴 Visio 形状 XML。Paste Visio shapes XML.
visPasteVisioShapesWithoutDataLinksvisPasteVisioShapesWithoutDataLinks6554865548粘贴不带内部数据链接的 Visio 绘图数据。Paste Visio drawing data without internal data links.
visPasteVisioShapesvisPasteVisioShapes6554065540粘贴 Visio 形状。Paste Visio shapes.
visPasteVisioTextvisPasteVisioText6554265542粘贴 Visio 文本。Paste Visio text.
© 2018 Microsoft