MonthCalendar.CopyPicture Method (2007 System)
Copies the MonthCalendar to the Clipboard as a picture.
Namespace: Microsoft.Office.Tools.Excel.Controls
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
Public Function CopyPicture ( _
Appearance As XlPictureAppearance, _
Format As XlCopyPictureFormat _
) As Object
'Usage
Dim instance As MonthCalendar
Dim Appearance As XlPictureAppearance
Dim Format As XlCopyPictureFormat
Dim returnValue As Object
returnValue = instance.CopyPicture(Appearance, _
Format)
public Object CopyPicture(
XlPictureAppearance Appearance,
XlCopyPictureFormat Format
)
public:
Object^ CopyPicture(
XlPictureAppearance Appearance,
XlCopyPictureFormat Format
)
public function CopyPicture(
Appearance : XlPictureAppearance,
Format : XlCopyPictureFormat
) : Object
Parameters
Appearance
Type: XlPictureAppearanceSpecifies how the picture should be copied.
Format
Type: XlCopyPictureFormatThe format of the picture. Accepts the value xlPicture.
Return Value
Type: System.Object
true if the copy is successful; otherwise, false.
Remarks
Optional Parameters
For information on optional parameters, see The Variable missing and Optional Parameters in Office Solutions.
Examples
For a code example that demonstrates how to use this method, see ButtonCopyPicture(XlPictureAppearance, XlCopyPictureFormat). 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.