Function getBoundTextElementPosition