//全图 public static void FullExtentGlobe(AxGlobeControl _axGlobeControl) { ICommand pCommand; pCommand = new ControlsGlobeFullExtentCommandClass(); pCommand.OnCreate(_axGlobeControl.Object); pCommand.OnClick(); }
/// <summary> /// 地图全览:实例化Icommand类中的控制地图全览的方法,创建在axGlobalControl中,点击鼠标实现 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void fullExtent_Click_1(object sender, EventArgs e) { ICommand cmd = new ControlsGlobeFullExtentCommandClass(); cmd.OnCreate(axGlobeControl1.Object); cmd.OnClick(); }
/// <summary> /// 全图显示 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e) { MainCtrl.GlobeMapContainer.globeCtrl.axGlobeControl1.CurrentTool = null; ICommand Cmd = new ControlsGlobeFullExtentCommandClass(); Cmd.OnCreate(MainCtrl.GlobeMapContainer.globeCtrl.axGlobeControl1.Object); Cmd.OnClick(); }