2 types derived from ToolStripMenuItem
System.Windows.Forms (2)
winforms\Managed\System\WinForms\MDIControlStrip.cs (2)
217internal class ControlBoxMenuItem : ToolStripMenuItem { 230internal class SystemMenuItem : ToolStripMenuItem {
16 instantiations of ToolStripMenuItem
System.Windows.Forms (16)
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (3)
39mergeItem = new ToolStripMenuItem(); 104ToolStripMenuItem windowListItem = new ToolStripMenuItem(mdiParent.MdiChildren[i]); 123ToolStripMenuItem moreWindowsMenuItem = new ToolStripMenuItem();
winforms\Managed\System\WinForms\MenuStrip.cs (1)
187return new ToolStripMenuItem(text, image, onClick);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (9)
1291this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 1292this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 1293this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); 1294this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); 1295this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); 1296this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem(); 1297this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripMenuItem(); 1298this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripMenuItem(); 1299this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (2)
308 itemToAdd = new ToolStripMenuItem(hmenu, info.wID, targetWindow); 561return new ToolStripMenuItem(text,image,onClick);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
612ToolStripMenuItem menuItem = new ToolStripMenuItem();
94 references to ToolStripMenuItem
System.Windows.Forms (94)
winforms\Managed\System\WinForms\ContextMenuStrip.cs (3)
80else if (item is ToolStripMenuItem) { 81ToolStripMenuItem menuItem = item as ToolStripMenuItem;
winforms\Managed\System\WinForms\MDIControlStrip.cs (5)
23private ToolStripMenuItem system; 24private ToolStripMenuItem close; 25private ToolStripMenuItem minimize; 26private ToolStripMenuItem restore; 90public ToolStripMenuItem Close {
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (8)
23private ToolStripMenuItem mergeItem; 36internal ToolStripMenuItem MergeItem { 67public void PopulateItems(Form mdiParent, ToolStripMenuItem mdiMergeItem, bool includeSeparator) { 72ToolStripMenuItem mergeItem = MergeItem; 104ToolStripMenuItem windowListItem = new ToolStripMenuItem(mdiParent.MdiChildren[i]); 123ToolStripMenuItem moreWindowsMenuItem = new ToolStripMenuItem(); 172ToolStripMenuItem windowListItem = sender as ToolStripMenuItem;
winforms\Managed\System\WinForms\MenuStrip.cs (2)
26private ToolStripMenuItem mdiWindowListItem = null; 169public ToolStripMenuItem MdiWindowListItem {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (29)
45private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem; 46private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; 47private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; 48private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3; 49private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4; 50private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5; 51private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem6; 52private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem7; 53private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem8; 1668void CheckZoomMenu(ToolStripMenuItem toChecked) { 1669foreach (ToolStripMenuItem item in zoomToolStripSplitButton.DropDownItems) { 1676ToolStripMenuItem item = sender as ToolStripMenuItem; 1682ToolStripMenuItem item = sender as ToolStripMenuItem; 1688ToolStripMenuItem item = sender as ToolStripMenuItem; 1694ToolStripMenuItem item = sender as ToolStripMenuItem; 1700ToolStripMenuItem item = sender as ToolStripMenuItem; 1706ToolStripMenuItem item = sender as ToolStripMenuItem; 1712ToolStripMenuItem item = sender as ToolStripMenuItem; 1718ToolStripMenuItem item = sender as ToolStripMenuItem; 1724ToolStripMenuItem item = sender as ToolStripMenuItem;
winforms\Managed\System\WinForms\ToolStrip.cs (6)
1946ToolStripMenuItem tsNextItem = nextItem as ToolStripMenuItem; 2649ToolStripMenuItem.MenuTimer.HandleToolStripMouseLeave(this); 3066foundMenuItem = (foundMenuItem || (currentItem is ToolStripMenuItem)); 3107if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.Text) || !currentItem.Enabled) { 3183ToolStripMenuItem.MenuTimer.Cancel();
winforms\Managed\System\WinForms\ToolStripButton.cs (2)
227/// <para>Raises the <see cref='System.Windows.Forms.ToolStripMenuItem.CheckedChanged'/> 237/// <para>Raises the <see cref='System.Windows.Forms.ToolStripMenuItem.CheckStateChanged'/> event.</para>
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1521ToolStripMenuItem.MenuTimer.Cancel();
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (3)
320 ((ToolStripMenuItem)itemToAdd).DropDown = FromHMenu(info.hSubMenu, targetWindow); 343ToolStripMenuItem menuItem = item as ToolStripMenuItem;
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
4256if (ownerItem.Selected && ownerItem is ToolStripMenuItem) { 4264if (ownerItem.Selected && ownerItem is ToolStripMenuItem) {
winforms\Managed\System\WinForms\ToolStripManager.cs (4)
1570ToolStripMenuItem item = activeControlInChain.ContextMenuStrip.Shortcuts[shortcut] as ToolStripMenuItem; 1661ToolStripMenuItem item = toolStrip.Shortcuts[shortcut] as ToolStripMenuItem;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (23)
152MenuTimer.Transition(this,otherItemBeingSelected as ToolStripMenuItem); 285Bitmap indeterminateCheckedBmp = new Bitmap(typeof(ToolStripMenuItem), "IndeterminateChecked.bmp"); 304Bitmap checkedBmp = new Bitmap(typeof(ToolStripMenuItem), "Checked.bmp"); 326Icon icon = new Icon(typeof(ToolStripMenuItem), iconName); 608internal ToolStripMenuItem Clone() { 612ToolStripMenuItem menuItem = new ToolStripMenuItem(); 892/// <para>Raises the <see cref='System.Windows.Forms.ToolStripMenuItem.CheckedChanged'/> 902/// <para>Raises the <see cref='System.Windows.Forms.ToolStripMenuItem.CheckStateChanged'/> event.</para> 1239private ToolStripMenuItem ownerItem = null; 1241public ToolStripMenuItemAccessibleObject(ToolStripMenuItem ownerItem) : base(ownerItem) { 1285private ToolStripMenuItem currentItem = null; 1286private ToolStripMenuItem fromItem = null; 1303private ToolStripMenuItem CurrentItem { 1317public void Start(ToolStripMenuItem item) { 1324private void StartCore(ToolStripMenuItem item) { 1336public void Transition(ToolStripMenuItem fromItem, ToolStripMenuItem toItem) { 1369public void Cancel(ToolStripMenuItem item) { 1383ToolStripMenuItem lastSelected = fromItem; 1414ToolStripMenuItem menuItem = (dropDown == null) ? null : dropDown.OwnerItem as ToolStripMenuItem; 1439private ToolStripMenuItem ownerItem; 1441public ToolStripMenuItemInternalLayout(ToolStripMenuItem ownerItem) : base(ownerItem) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (4)
628if (e.Item is ToolStripMenuItem && (e.Item.Selected || e.Item.Pressed)) { 655if (e.Item is ToolStripMenuItem) { 656ToolStripMenuItem item = e.Item as ToolStripMenuItem;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (2)
364ToolStripMenuItem item = e.Item as ToolStripMenuItem;