DeleteRange
Content stream editing
Description
Removes one inclusive instruction range from the model in a single atomic operation
Syntax
Delphi
Function TPDFContentProgram.DeleteRange(FirstInstruction, LastInstruction: Integer): Boolean;Parameters
FirstInstruction | Zero-based index of the first instruction to delete |
|---|---|
LastInstruction | Zero-based index of the last instruction to delete, inclusive |
Return values
True when the range was deleted, otherwise false
Remarks
The whole range is removed as one unit; capture its source with EmitRange first when a copy is needed, and use Delete for a single instruction