Add a scrap line reference to this area.
The optional index parameter allows to adjust the insertion point; the line will be inserted at the index, pushing already present content one line down (-1=end, 0=start, ...). When replacing, the selected index will be replaced.
Instead of $index 0 and -1 you can use the strings 'start'/'end', this will make your code more readable. Using
will use logical line number instead of the index (logical = index+1).
When adding a File_Therion_ScrapLine object, the scraps -id option will be used as reference. To resolve the line objects using a given scrap object, use dereferenceLines().
Note that for therion line ordering matters. See the therion documentation for more details.
Parameters: