StringList.splice

Changes self by removing n_removals strings and adding additions to it.

This function is more efficient than gtk.string_list.StringList.append and gtk.string_list.StringList.remove, because it only emits the ::items-changed signal once for the change.

This function copies the strings in additions.

The parameters position and n_removals must be correct (ie: position + n_removals must be less than or equal to the length of the list at the time this function is called).

class StringList
void
splice
(,,
string[] additions = null
)

Parameters

position uint

the position at which to make the change

nRemovals uint

the number of strings to remove

additions string[]

The strings to add