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.
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