Find text in textfield

I am not sure why this is so difficult. I used to be much better at this coding thing. anyway i am trying to find the position, width and height of a segment of a textfield. I can not find (via online) the method(s) to be used. With strings it seems much easier to access a substring, but finding it in a textfield, and then finding its dimensions seems impossible for me. any help would be awesome. thanks. also any tips to get better in general at this whole programming thing would be awessome too.