Puts a picture on the Clipboard object using the specified graphic format.
Clipboard.SetPicture(pic [, enFormat ] )
The SetPicture method syntax has the following parts:
|
Name |
Type |
Description |
|
The system clipboard internal variable |
||
|
pic |
Picture object to be set to the clipboard |
|
|
enFormat |
Optional. An integer that specifies the Clipboard object picture format. If the format argument is omitted, the method automatically determines the graphic format. |
|
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 |
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.
The following statement places the chart control image to the clipboard:
Clipboard.SetPicture(cht.Image)