Hi, I have to write a code in c# on Pan event of Arcgis. Can anyone suggest how to do it C#?
No the other thing...One application give me the coordinates and I have to jump to those coordinaes in ArcGis. Do you have idea?
Thanks, Problem has been resolved using...
ITransformEvents_Event MyEvent =(ITransformEvents_Event) ((IMxDocument)doc).ActiveView.ScreenDisplay.DisplayTransformation;
MyEvent.VisibleBoundsUpdated += new ITransformEvents_VisibleBoundsUpdatedEventHandler(OnVisisbleBoundsChanged);
((IGlobeDisplayEvents_Event)m_globeDisplay).AfterDraw += new IGlobeDisplayEvents_AfterDrawEventHandler(OnAfterDraw);
private void OnVisisbleBoundsChanged(object sender, Boolean result)
{
//write code
}
Try this: IActiveViewEvents.AfterDraw Event (ArcObjects .NET 10.1 SDK)
You must keep the old extent in order to understand if it was changed.
Have fun
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.