get_caret_offset


Description:

public abstract int get_caret_offset ()

Gets the offset of the position of the caret (cursor).

Parameters:

this

an Text

Returns:

the character offset of the position of the caret or -1 if the caret is not located inside the element or in the case of any other failure.




2022 vala-language.org