Base:
property
Pressed
System.Windows.Forms.ToolStripItem.Pressed
18 references to Pressed
System.Windows.Forms (13)
System\Windows\Forms\Controls\Menus\MenuTimer.cs (1)
150
if (menuItem is not null && menuItem.
Pressed
)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1801
&& dropDownItem.
Pressed
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
201
if (Selected && !
Pressed
&& SystemInformation.HighContrast)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
142
if (item.
Pressed
)
154
Color arrowColor = item.Selected && !item.
Pressed
? SystemColors.HighlightText : SystemColors.ControlText;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
962
if (Selected ||
Pressed
)
1010
Color arrowColor = (Selected ||
Pressed
) ? SystemColors.HighlightText : SystemColors.MenuText;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (5)
228
if (e.Item is ToolStripDropDownItem item && item.
Pressed
&& item.HasDropDownItems)
273
bool buttonPressedOrSelected = (item.
Pressed
|| item.ButtonPressed || item.Selected || item.ButtonSelected);
291
else if (item.
Pressed
)
298
if (buttonPressedOrSelected && !item.
Pressed
)
1241
if (item is not null && item.
Pressed
)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
452
if (item.Selected || item.
Pressed
)
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
77
Assert.False(item.
Pressed
);
166
Assert.False(item.
Pressed
);
265
Assert.False(item.
Pressed
);
373
Assert.False(item.
Pressed
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
84
Assert.False(item.
Pressed
);