PasteFromClipboard

Top  Previous  Next

 

PasteFromClipboard (Method)

 

Imports into the drawing the contents of the Clipboard

 

Syntax:

Function PasteFromClipboard(xBase As Single, yBase As Single, dx As Single, dy As Single, zOrder As Integer, vItemProperties As Object, iLayer As Short, nMapMode As Integer) As Integer

 

The PasteFromClipboard method syntax consists of the following:

Parameter

Data Type

Description

xBase

Single

Is the x coordinate of the insertion point

yBase

Single

Is the y coordinate of the insertion point

dx

Single

Is the width of the drawing that will be inserted

dy

Single

Is the height of the drawing that will be inserted

zOrder

Integer

Is the new object's elevation in the whole drawing

vItemProperties

Object

Is a string array with properties for the new object

iLayer

Short

Is the layer number

nMapMode

Integer

Is the API's mapmode

 

Return value:

Integer - An Avax handle on success, zero on error.

 

Remarks:

If dx=dy=0 then the program will calculate the width and height in accordance with the AVAX property AvaxProp.PrintUnit_MM_p

 

Example