Select to view content in your preferred language

Arc Objects C#

3273
3
07-01-2015 04:52 AM
AnkurWalia
Deactivated User

Hi, I have to write a code in c# on Pan event of Arcgis. Can anyone suggest how to do it C#?

0 Kudos
3 Replies
ModyBuchbinder
Esri Regular Contributor

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

0 Kudos
AnkurWalia
Deactivated User

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

        }

0 Kudos
AnkurWalia
Deactivated User

No the other thing...One application give me the coordinates and I have to jump to those coordinaes in ArcGis. Do you have idea?

0 Kudos