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