splice


Description:

public void splice (uint position, uint n_removals, string[]? additions)

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

This function is more efficient than [[email protected]] and [[email protected]], 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).

Parameters:

this

a `GtkStringList`

position

the position at which to make the change

n_removals

the number of strings to remove

additions

The strings to add




2022 vala-language.org