My first thought was it would be something like this:
int height = textbox.lines.length * lineheight;
But it just counts "\xd\n" and lines can be wrapped. Can i get the number of displayed lines or actual height of textbox when everything is visible(the height of text inside)?