Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies the ListBox to the Clipboard as a picture.
Namespace: Microsoft.Office.Tools.Excel.Controls
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
Public Function CopyPicture ( _
Appearance As XlPictureAppearance, _
Format As XlCopyPictureFormat _
) As Object
public Object CopyPicture(
XlPictureAppearance Appearance,
XlCopyPictureFormat Format
)
Parameters
- Appearance
Type: Microsoft.Office.Interop.Excel.XlPictureAppearance
Specifies how the picture should be copied.
- Format
Type: Microsoft.Office.Interop.Excel.XlCopyPictureFormat
The format of the picture. Accepts the value xlPicture.
Return Value
Type: System.Object
true if the copy is successful; otherwise, false.
Examples
For a code example that demonstrates how to use this method, see Button.CopyPicture. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent CopyPicture method.
.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.