Declaration
Automation:
void  Copy ( [in]   IMultiSelection  pSelection, [in]   bool  MergeBlocks) ;
Native (C++):
HRESULT  Copy ( [in]   IMultiSelection *  pSelection, [in]   VARIANT_BOOL  MergeBlocks) ;
Parameters
pSelectionThe multiple selection object.MergeBlocksTrue to merge selection blocks, false to leave them as is
Return Value
S_OK or standard OLE error code.
Remarks
Copies the given selection to the Clipboard. Complexity: linear-time, depending on the selection's complexity.
Examples

Placing document's data to the Clipboard

C#Copy Code
// fdoc is defined and obtained elsewhere
FileDocumentLib.IMultiSelection msel=fdoc.CreateEmptySelection(); // create an empty selection object
msel.AddRange(100,20); // add a first range to the selection
msel.AddRange(200,20); // add a second range to the selection
fdoc.Copy(msel,false); // place data to the clipboard