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