ControlSite.CopyPicture Method
Copies the ControlSite to the Clipboard as a picture.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
Function CopyPicture ( _
Appearance As XlPictureAppearance, _
Format As XlCopyPictureFormat _
) As Object
Object CopyPicture(
XlPictureAppearance Appearance,
XlCopyPictureFormat Format
)
Parameters
Appearance
Type: Microsoft.Office.Interop.Excel.XlPictureAppearanceOne of the XlPictureAppearance values that specifies how the picture should be copied.
Format
Type: Microsoft.Office.Interop.Excel.XlCopyPictureFormatOne of the XlCopyPictureFormat values that specifies the format of the picture.
Return Value
Type: System.Object
true if the copy is successful; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.