get_selection


Description:

[ NoWrapper ]
public abstract bool get_selection (out AccessibleTextRange[] ranges)

Retrieves the selection ranges in the accessible object.

If this function returns true, `n_ranges` will be set to a value greater than or equal to one, and ranges will be set to a newly allocated array of [struct#Gtk.AccessibleTextRange].

Parameters:

this

the accessible object

ranges

the selection ranges

n_ranges

the number of selection ranges

Returns:

true if there is at least a selection inside the accessible object, and false otherwise