Что ж столько времени мучаетесь-то.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004900000075000000
public class PanToPoint : ESRI.ArcGIS.Desktop.AddIns.Button
{
protected override void OnClick()
{
var pPoint = new PointClass { X = 0, Y = 0 };
var pActiveView = ArcMap.Document.ActiveView;
PanToPoint(pActiveView, pPoint);
RefreshScreen(pActiveView);
var color = new RgbColorClass { Red = 255, Green = 0, Blue = 0 };
var delayInMilliseconds = 500;
FlashGeometry(pPoint, color, pActiveView.ScreenDisplay, delayInMilliseconds);
}
private void RefreshScreen(IActiveView pActiveView)
{
pActiveView.Refresh();
pActiveView.ScreenDisplay.UpdateWindow();
}
private void PanToPoint(IActiveView pActiveView, PointClass pPoint)
{
var pExtent = pActiveView.Extent;
pExtent.CenterAt(pPoint);
pActiveView.Extent = pExtent;
}
///<summary>Flash geometry on the display. The geometry type could be polygon, polyline, point, or multipoint.</summary>
public void FlashGeometry(IGeometry geometry, IRgbColor color, IDisplay display, Int32 delay)
{
if (geometry == null || color == null || display == null)
{
return;
}
display.StartDrawing(display.hDC, (System.Int16)ESRI.ArcGIS.Display.esriScreenCache.esriNoScreenCache); // Explicit Cast
switch (geometry.GeometryType)
{
case ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPolygon:
{
//Set the flash geometry's symbol.
ESRI.ArcGIS.Display.ISimpleFillSymbol simpleFillSymbol = new ESRI.ArcGIS.Display.SimpleFillSymbolClass();
simpleFillSymbol.Color = color;
ESRI.ArcGIS.Display.ISymbol symbol = simpleFillSymbol as ESRI.ArcGIS.Display.ISymbol; // Dynamic Cast
symbol.ROP2 = ESRI.ArcGIS.Display.esriRasterOpCode.esriROPNotXOrPen;
//Flash the input polygon geometry.
display.SetSymbol(symbol);
display.DrawPolygon(geometry);
System.Threading.Thread.Sleep(delay);
display.DrawPolygon(geometry);
break;
}
case ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPolyline:
{
//Set the flash geometry's symbol.
ESRI.ArcGIS.Display.ISimpleLineSymbol simpleLineSymbol = new ESRI.ArcGIS.Display.SimpleLineSymbolClass();
simpleLineSymbol.Width = 4;
simpleLineSymbol.Color = color;
ESRI.ArcGIS.Display.ISymbol symbol = simpleLineSymbol as ESRI.ArcGIS.Display.ISymbol; // Dynamic Cast
symbol.ROP2 = ESRI.ArcGIS.Display.esriRasterOpCode.esriROPNotXOrPen;
//Flash the input polyline geometry.
&nbs