Integral of a 2D histogram

Hello !
I just started using root a couple weeks ago and I am
looking for a way to perform an integral of a 2D histogram :
TH2F *h2 = new TH2F(“h2”,"",100,1750,1770,100,0,120);
between two values let say between 1756 and 1766 and not two bin indices!
Any ideas on how to do this ?
Thank you

You can convert a coordinate to a bin number via
int binx = h->GetXaxis()->FindBin(x);
int biny = h->GetYaxis()->FindBin(y);

Then use TH2::Integral