text_index_to_layout_index


Description:

public int text_index_to_layout_index (int text_index)

Converts from a position in the entry contents (returned by get_text) to a position in the entry’s Layout (returned by get_layout, with text retrieved via get_text).

Parameters:

this

a Entry

text_index

byte index into the entry contents

Returns:

byte index into the entry layout text