SetPicture Property (AClipboard)

Puts a picture on the Clipboard object using the specified graphic format.

Syntax

Clipboard.SetPicture(pic [, enFormat ] )

The SetPicture method syntax has the following parts:

 

Name

Type

Description

Clipboard

AClipboard

The system clipboard internal variable

pic

APicture

Picture object to be set to the clipboard

enFormat

enumAClipboardFormat

Optional. An integer that specifies the Clipboard object picture format. If the format argument is omitted, the method automatically determines the graphic format.

Where

enumAClipboardFormat:

 

Name

Value

Description

acfText

1

Text string (N/A for this method)

acfBitmap

2

Bitmap picture

acfMetafile

3

Metafile picture

acfDIB

8

Device-independent bitmap picture

acfPalette

9

Pallete

acfEnhMetafile

14

Enhanced metafile picture

acfDDELink

0xBF00

DDE Conversation Information text string  (N/A for this method)

acfRTF

0xBF01

Rich text format text string  (N/A for this method)

acfIcon

0xBF02

Icon picture

Comments

You set the graphic that is to be placed onto the Clipboard object with either the LoadPicture function or the Image properties of various controls and a form.

Example

The following statement places the chart control image to the clipboard:

Clipboard.SetPicture(cht.Image)

Applies to

AClipboard

See Also

Clipboard, GetFormat, LoadPicture, SetText