Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.Cut Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  Cut ( [in]   IMultiSelection  pSelection, [in]   bool  MergeBlocks) ;
Native (C++):
HRESULT  Cut ( [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 and removes it from the document. Complexity: linear-time, depending on the selection complexity.
Examples

Cutting document's data to the Clipboard

C#Copy Code
// fdoc is initialized 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.Cut(msel,false); // place data to the clipboard
    
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.