_Chart.CopyPicture 方法

定义

将所选对象作为图片复制到剪贴板。

public void CopyPicture (Microsoft.Office.Interop.Excel.XlPictureAppearance Appearance = Microsoft.Office.Interop.Excel.XlPictureAppearance.xlScreen, Microsoft.Office.Interop.Excel.XlCopyPictureFormat Format = Microsoft.Office.Interop.Excel.XlCopyPictureFormat.xlPicture, Microsoft.Office.Interop.Excel.XlPictureAppearance Size = Microsoft.Office.Interop.Excel.XlPictureAppearance.xlPrinter);
Public Sub CopyPicture (Optional Appearance As XlPictureAppearance = Microsoft.Office.Interop.Excel.XlPictureAppearance.xlScreen, Optional Format As XlCopyPictureFormat = Microsoft.Office.Interop.Excel.XlCopyPictureFormat.xlPicture, Optional Size As XlPictureAppearance = Microsoft.Office.Interop.Excel.XlPictureAppearance.xlPrinter)

参数

Appearance
XlPictureAppearance

可选 XlPictureAppearance。 指定图片的复制方式。

Format
XlCopyPictureFormat

可选 XlCopyPictureFormat。 图片的格式。

Size
XlPictureAppearance

可选 XlPictureAppearance。 当对象是图表工作表中的图表(不是工作表中的嵌入式图表)时,此参数代表复制图片的大小。

适用于