How do I get position (coordinates) of a field in PDF?

Q: We are trying to get the X,Y coordinates of a control in pdf
document. Using Element.GetBBox() is giving the control lables (text)
but we are looking \"text field\" coordinates.

Please let me know how to get PDF field control coordinates.
------
A: I am not sure that I correctly understand the question, but in case
you need to obtain the position of a widget annotation on a page you
can use annot.GetRect().

For a sample code showing how to traverse all annotations in a PDF
document, please take a look at Annotation sample project (http://
www.pdftron.com/pdfnet/samplecode.html).