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