add

open override fun add(index: Int, element: Segment)

Inserts a segment into the part at the specified index. The new segment is inserted at the specified index. This index may be equal to the segment count which is equivalent to adding to the end of the collection. The number of points in the part increases to connect in the new segment.

Since

200.1.0

Parameters

index

Zero-based index of the segment.

element

The segment to insert.