Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.FillByteMulti Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  FillByteMulti ( [in]   byte  fillval, [in]   IMultiSelection  pSel) ;
Native (C++):
HRESULT  FillByteMulti ( [in]   unsigned char  fillval, [in]   IMultiSelection *  pSel) ;
Parameters
fillvalThe byte to put in the selection.pSelThe multiple selection object, which contains the ranges to fill in the document.
Return Value
S_OK or standard OLE error code.
Remarks
Fills a given multiple selection with a single byte value. Complexity: linear-time, depending on the selection's complexity.
Examples

Filling a range with a single byte

C#Copy Code
// fdoc is initialized elsewhere
FileDocumentLib.IMultiSelection msel = fdoc.CreateEmptySelection();
msel.AddRange(100, 20);
msel.AddRange(200, 30);
fdoc.FillByteMulti(0x35, msel);
    
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.