_OLEObject.CopyPicture Method
Copies the selected object to the Clipboard as a picture. Object.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function CopyPicture ( _
Appearance As XlPictureAppearance, _
Format As XlCopyPictureFormat _
) As Object
'Usage
Dim instance As _OLEObject
Dim Appearance As XlPictureAppearance
Dim Format As XlCopyPictureFormat
Dim returnValue As Object
returnValue = instance.CopyPicture(Appearance, _
Format)
Object CopyPicture(
XlPictureAppearance Appearance,
XlCopyPictureFormat Format
)
Parameters
Appearance
Type: Microsoft.Office.Interop.Excel.XlPictureAppearanceOptional XlPictureAppearance. Specifies how the picture should be copied.
Format
Type: Microsoft.Office.Interop.Excel.XlCopyPictureFormatOptional XlCopyPictureFormat. The format of the picture.
Return Value
Type: System.Object