public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef) { // TODO: Add CToolbar.GetItemInfo implementation UID pUID = new UIDClass(); itemDef.Group = false; switch (pos) { case 0: pUID.Value = "CoM_GISTools.AddLayer.CAddLayer"; break; case 1: pUID.Value = "CoM_GISTools.DataFrame.CDataFrame"; break; //case 2: // pUID.Value = "CoM_GISTools.TaxlotSearch.CTaxlotSearch"; // break; case 2: pUID.Value = "CoM_GISTools.Print.CPrintMap"; break; } itemDef.ID = pUID.Value.ToString(); }
public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef) { if (pos == 0) { itemDef.ID = "RoutingSample.RoutingCommand"; itemDef.Group = false; } }
public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef) { // TODO: Add ArcGISClass1.GetItemInfo implementation UID pUID = new UIDClass(); itemDef.Group = false; switch (pos) { case 0: pUID.Value = "CoM_UnstackPoints.CUnstackPoints"; break; } itemDef.ID = pUID.Value.ToString(); }
public void GetItemInfo(int pos, ESRI.ArcGIS.SystemUI.IItemDef itemDef) { //Adding the Items to the Menu switch (pos) { case 0: // Set the item in the menu to the ClassID of multiItem above itemDef.ID = "esriControlToolsPageLayout.ControlsPageZoomInFixedCommand"; itemDef.Group = false; break; case 1: //Set the item in the menu to the ClassID of multiItem above itemDef.ID = "esriControlToolsPageLayout.ControlsPageZoomOutFixedCommand"; itemDef.Group = false; break; case 2: //Set the item in the menu to the ClassID of multiItem above itemDef.ID = "esriControlToolsPageLayout.ControlsPageZoomWholePageCommand"; itemDef.Group = false; break; case 3: //Set the item in the menu to the ClassID of multiItem above itemDef.ID = "esriControlToolsPageLayout.ControlsPageZoomPageToLastExtentBackCommand"; itemDef.Group = false; break; case 4: //Set the item in the menu to the ClassID of multiItem above itemDef.ID = "esriControlToolsPageLayout.ControlsPageZoomPageToLastExtentForwardCommand"; itemDef.Group = false; break; } }