protected override void OnClick() { try { UID commandID = new UIDClass(); commandID.Value = "esriArcMapUI.ZoomToSelectedCommand"; ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID.Value); if(comm != null) comm.Execute(); } catch { } }
comm
ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID);
protected override void OnClick() { try { UID commandID = new UIDClass(); commandID.Value = "esriArcMapUI.MxSelectionMenu"; ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID.Value); if(comm != null) comm.Execute(); } catch { } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.