protected override void OnClick() { ICommandBars bars = ArcMap.Application.Document.CommandBars; ICommandBar newBar = bars.Create("my new toolbar", esriCmdBarType.esriCmdBarTypeToolbar); UID uid = new UIDClass(); uid.Value = "{E1F29C6B-4E6B-11D2-AE2C-080009EC732A}"; object index = 0; newBar.Add(uid, ref index); //find the standard toolbar and bang it on the end UID barID = new UIDClass(); barID.Value = "esriArcMapUI.StandardToolBar"; ICommandBar stb = bars.Find(barID, false, false) as ICommandBar; newBar.Dock(esriDockFlags.esriDockRight,stb); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.