splice


Description:

[ Version ( since = "2.44" ) ]
public void splice (uint position, uint n_removals, Object[] additions)

Changes this by removing n_removals items and adding additions.length items to it.

additions must contain additions.length items of type item_type. null is not permitted.

This function is more efficient than insert and remove, because it only emits items_changed once for the change.

This function takes a ref on each item 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).

Parameters:

this

a ListStore

position

the position at which to make the change

n_removals

the number of items to remove

additions

the items to add

n_additions

the number of items to add




2022 vala-language.org