ChartObjects.CopyPicture 方法 (Excel)ChartObjects.CopyPicture method (Excel)

将所选对象作为图片复制到剪贴板。Copies the selected object to the Clipboard as a picture. VariantVariant.

语法Syntax

expressionexpression. CopyPicture( _Appearance_ , _Format_ )

_表达式_一个代表ChartObjects对象的变量。expression A variable that represents a ChartObjects object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
AppearanceAppearance 可选Optional xlPictureAppearancexlPictureAppearance . 指定图片的复制方式。Specifies how the picture should be copied. 默认值为xlScreenThe default value is xlScreen.
FormatFormat 可选Optional xlCopyPictureFormatxlCopyPictureFormat . 图片的格式。The format of the picture. 默认值为xlPictureThe default value is xlPicture.

返回值Return value

VariantVariant

另请参阅See also

ChartObjects 对象ChartObjects Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.