Share via


MaskedTextBox.CopyPicture(XlPictureAppearance, XlCopyPictureFormat) Method

Definition

Copies the MaskedTextBox to the Clipboard as a picture.

public:
 System::Object ^ CopyPicture(Microsoft::Office::Interop::Excel::XlPictureAppearance Appearance, Microsoft::Office::Interop::Excel::XlCopyPictureFormat Format);
public object CopyPicture (Microsoft.Office.Interop.Excel.XlPictureAppearance Appearance, Microsoft.Office.Interop.Excel.XlCopyPictureFormat Format);
member this.CopyPicture : Microsoft.Office.Interop.Excel.XlPictureAppearance * Microsoft.Office.Interop.Excel.XlCopyPictureFormat -> obj
Public Function CopyPicture (Appearance As XlPictureAppearance, Format As XlCopyPictureFormat) As Object

Parameters

Appearance
XlPictureAppearance

Specifies how the picture should be copied.

Format
XlCopyPictureFormat

The format of the picture. Accepts the value xlPicture.

Returns

true if the copy is successful; otherwise, false.

Examples

For a code example that demonstrates how to use this method, see Microsoft.Office.Interop.Excel.Button.CopyPicture. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent CopyPicture method.

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to