Parameters
- partIndex
- 0 based index for parts. Specify 0 to insert at the beginning. Specify (CountParts - 1) or -1 to insert at the end.
- beforeSegmentIndex
- 0 based index for the segment. Specify 0 to insert at the beginning and -1 to insert at the end.
- segment
- The segment to insert.