Is there any way to get location of grid inside of viewport on sheet?

I want to get the intersected grid location of viewport on sheet. Please help me .

thank you.