Text.getTextBeforeOffset

Warning atk_text_get_text_before_offset is deprecated and should not be used in newly-written code. This method is deprecated since ATK version 2.9.3. Please use atk_text_get_string_at_offset() instead. Gets the specified text.

class Text
string
getTextBeforeOffset

Parameters

offset int

position

boundaryType AtkTextBoundary

An AtkTextBoundary

startOffset int

the start offset of the returned string. out

endOffset int

the offset of the first character after the returned substring. out

Return Value

Type: string

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

Meta