Description

Returns the clipboard formats of supported for a DataObject for the selection.

Return Type

A Long value.   The number of formats returned in alClipFormat.
Failure Returns 0.

Failure conditions:
Selection is empty.

Syntax

object.DataObjectGetFormats (alClipFormat(), eOLEDropEffectAllowed)

The DataObjectGetFormats Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataNodes.
alClipFormat()Required. An array of Long values. An array (safearray) to receive the clipboard formats stored as long.
eOLEDropEffectAllowedRequired. An OLEDropEffectConstants enumeration, as described in settings. The drop effect to be used. vbDropEffectNone and vbDropEffectAll are treated the same.
When any object in the selection may use the given drop effect the clipboard format will be returned.

Settings

The settings for eOLEDropEffectAllowed are:

ConstantValueDescription
 vbDropEffectNone0

No OLE drag/drop operation has taken place/would take place.

 vbDropEffectCopy1

A mask to indicate that a copy has taken place/would take place.

 vbDropEffectMove2

A mask to indicate that a move has take place/would take place.

 vbDropEffectLink4

A mask to indicate that a link has take place/would take place.

 vbDropEffectScroll-2147483648

A mask to indicate that the drop target window has scrolled/would scroll.

 vbDropEffectAll-2147483641

A mask to indicate for all drop target actions known to this type.