Declaration
Automation:
void  InsertByte ( [in]   byte  nByteFill, [in]   ulong  off, [in]   ulong  Size) ;
Native (C++):
HRESULT  InsertByte ( [in]   unsigned char  nByteFill, [in]   unsigned __int64  off, [in]   unsigned __int64  Size) ;
Parameters
nByteFillThe byte value to insert.offInsert offsetSizeInsert size
Return Value
S_OK or standard OLE error code.
Remarks
Inserts a block of a given size into the document and fill it with a given byte value. Complexity: constant-time.
Examples

Inserting a pattern

C#Copy Code
// fdoc is initialized elsewhere
fdoc.InsertByte('#', 100, 10000);