Hex Editor
Hex Editor - Binary File Editing Software for Windows

IMultiSelection.AddRange Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  AddRange ( [in]   ulong  Offset, [in]   ulong  Size) ;
Native (C++):
HRESULT  AddRange ( [in]   unsigned __int64  Offset, [in]   unsigned __int64  Size) ;
Parameters
OffsetStarting offsetSizeRange size
Return Value
S_OK or standard OLE error code.
Remarks
Adds a given range to a selection. If the range intersects any existing ranges, they are combined with a given range. A number of ranges in a selection may change after adding a new range. Complexity: linear-time, depending on the current selection configuration.
Examples

Adding ranges to a selection

C#Copy Code
// msel is initialized elsewhere and is currently empty
msel.AddRange(100, 20);  // selection: [100..120)
msel.AddRange(150, 20);  // selection: [100..120) U [150..170)
msel.AddRange(80, 80); // selection: [80..170)
    
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.