1 IActiveView activeView; 2 3 IEnvelope env = activeView.Extent; 4 IPoint centerpnt = (feat.ShapeCopy as IArea).Centroid; 5 env.CenterAt(centerpnt); 6 activeView.Extent = env; 7 activeView.Refresh()
1 IActiveView activeView; 2 3 IEnvelope env = activeView.Extent; 4 IPoint centerpnt = (feat.ShapeCopy as IArea).Centroid; 5 env.CenterAt(centerpnt); 6 activeView.Extent = env; 7 activeView.Refresh()