get_text_before_offset


Description:

[ Version ( deprecated = true , deprecated_since = "2.9.3" ) ]
public abstract string get_text_before_offset (int offset, TextBoundary boundary_type, out int start_offset, out int end_offset)

Warning: get_text_before_offset is deprecated since 2.9.3.

Gets the specified text.

Note:

Please use get_string_at_offset instead.

Parameters:

this

an Text

offset

position

boundary_type

An TextBoundary

start_offset

the starting character offset of the returned string

end_offset

the offset of the first character after the returned substring

Returns:

a newly allocated string containing the text before offset bounded by the specified boundary_type. Use g_free to free the returned string.




2022 vala-language.org