Declaration
Automation:
void  FillMulti ( [in]   ref byte  pPattern, [in]   uint  pattern_size, [in]   IMultiSelection  pSel, [in]   bool  bCont) ;
Native (C++):
HRESULT  FillMulti ( [in]   unsigned char *  pPattern, [in]   unsigned long  pattern_size, [in]   IMultiSelection *  pSel, [in]   VARIANT_BOOL  bCont) ;
Parameters
pPatternPointer to a patternpattern_sizePattern SizepSelThe multiple selection object, which contains the ranges to fill in the document.bContTrue to continue filling in a new range and False to start from the beginning of the pattern. See the description of the "Transparent fill" flag in the Fill user-interface command for more information.
Return Value
S_OK or standard OLE error code.
Remarks
Fills a given multiple selection with a specified pattern. The pattern is repeated until all given range(s) are filled. bCont parameter specifies whether to continue filling a new range from the previous range, or from the beggining of the pattern. 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);
byte[] pattern = new byte[] { 0x31, 0x32, 0x33 };
fdoc.FillMulti(ref pattern[0], pattern.Length, msel, false);
    

See Also