Declaration
Getting property value:
Automation:
bool  value = obj.CanPaste;
Native (C++):
HRESULT  get_ CanPaste ( [out, retval]   VARIANT_BOOL *  val) ;
Parameters
valPointer to a variable that receives a property value.
Return Value
Automation:True if Clipboard contains data in compatible format and False otherwise.Native: S_OK or standard OLE error code.
Remarks
Determine if you can paste data from the Clipboard.
Examples

C++Copy Code
// pFileDocument is initialized elsewhere
VARIANT_BOOL bCanPaste;
pFileDocument->get_CanPaste(&bCanPaste);
if (bCanPaste!=VARIANT_FALSE)
{
  // Clipboard contains compatible data
} else
{
  // Clipboard contains incompatible data
}