var plugin = FrameworkApplication.GetPlugInWrapper("esri_editing_EditVerticesText"); if (plugin.Enabled) ((ICommand)plugin).Execute(null);
IPlugInWrapper wrapper = FrameworkApplication.GetPlugInWrapper("esri_editing_ShowAttributes"); var command = wrapper as ICommand; // tool and command(Button) supports this if ((command != null) && command.CanExecute(null)) command.Execute(null);
// use SetCurrentToolAsync FrameworkApplication.SetCurrentToolAsync("esri_mapping_selectByRectangleTool"); // or use ICommand.Execute ICommand cmd = FrameworkApplication.GetPlugInWrapper("esri_mapping_selectByRectangleTool") as ICommand; if ((cmd != null) && cmd.CanExecute(null)) cmd.Execute(null);
Target Platforms: Windows 11, Windows 10