Declaration
Automation:
void  GetModifiedSel ( [in]   IMultiSelection  pSelection) ;
Native (C++):
HRESULT  GetModifiedSel ( [in]   IMultiSelection *  pSelection) ;
Parameters
pSelectionMultiple Selection object to be filled with modified ranges.
Return Value
S_OK or standard OLE error code.
Remarks
Fills a provided Multiple Selection object with ranges that describe the changed data in the document. The method clears the given multiple selection object before execution. Complexity: linear-time, depending on the number of document modifications.
Examples

Using GetModifiedSel method

C#Copy Code
FileDocumentLib.FileDocument fdoc = new FileDocumentLib.FileDocument();
fdoc.Open(@"c:\temp\file.bin");
fdoc.FillByte(0x35, 100, 20);
fdoc.FillByte(0x36, 200, 30);
FileDocumentLib.IMultiSelection msel = fdoc.CreateEmptySelection();
fdoc.GetModifiedSel(msel);
// msel is now: [100..120) U [200..230)