1 override of Pressed
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
269public override bool Pressed
83 references to Pressed
System.Windows.Forms (21)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1391((OwnerItem is null || OwnerItem.Pressed) && charCode != ' ' && ProcessMnemonic(charCode))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
281return base.Pressed;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (7)
98if (e.Item.Pressed) 179if (!e.Item.IsOnDropDown && e.Item.Pressed) 206: item.Selected && !item.Pressed ? SystemColors.HighlightText 218if (e.Item.Selected && (!e.Item.Pressed || e.Item is ToolStripButton)) 225if (e.Item.Selected || e.Item.Pressed) 444if (e.Item.Pressed) 494if (IsHighContrastWhiteOnBlack() && !(FillWhenSelected && (item.Pressed || item.Selected)))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
187if (_ownerItem.Selected || _ownerItem.Pressed) 192if (_ownerItem.Pressed)
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
361if (Pressed)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
613if (item.Pressed) 715if (e.Item is ToolStripMenuItem && (e.Item.Selected || e.Item.Pressed)) 914if (item.Pressed) 1057fill = (e.Item.Pressed) ? ColorTable.CheckPressedBackground : fill; 1066if (e.Item.Pressed) 1577if (item.Pressed)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
784if (e.ShiftOnPress && e.Item is not null && e.Item.Pressed)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
98return SplitButtonButton.Pressed;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
168else if (item.Pressed)
System.Windows.Forms.Tests (62)
System\Windows\Forms\ToolStripButtonTests.cs (19)
77Assert.False(item.Pressed); 158Assert.False(item.Pressed); 245Assert.False(item.Pressed); 335Assert.False(item.Pressed); 423Assert.False(item.Pressed); 521Assert.False(item.Pressed); 1526Assert.True(item.Pressed); 1533Assert.False(item.Pressed); 1553Assert.True(item.Pressed); 1560Assert.False(item.Pressed); 1580Assert.True(item.Pressed); 1587Assert.False(item.Pressed); 1605Assert.True(item.Pressed); 1612Assert.False(item.Pressed); 1632Assert.True(item.Pressed); 1639Assert.False(item.Pressed); 1659Assert.True(item.Pressed); 1666Assert.False(item.Pressed); 1680Assert.False(item.Pressed);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
106Assert.False(item.Pressed); 4367Assert.False(item.Pressed);
System\Windows\Forms\ToolStripItemTests.cs (40)
76Assert.False(item.Pressed); 161Assert.False(item.Pressed); 256Assert.False(item.Pressed); 2571Assert.False(item.Pressed); 10944Assert.False(item.Pressed); 13635Assert.True(item.Pressed); 13643Assert.False(item.Pressed); 13649Assert.False(item.Pressed); 13669Assert.False(item.Pressed); 13677Assert.False(item.Pressed); 13683Assert.False(item.Pressed); 13700Assert.False(grip.Pressed); 13712Assert.False(grip.Pressed); 13720Assert.False(grip.Pressed); 13739Assert.False(item.Pressed); 13747Assert.False(item.Pressed); 13753Assert.False(item.Pressed); 13771Assert.True(item.Pressed); 13788Assert.False(item.Pressed); 13796Assert.False(item.Pressed); 13804Assert.False(item.Pressed); 13830Assert.True(item.Pressed); 13847Assert.False(item.Pressed); 13858Assert.False(item.Pressed); 13869Assert.False(item.Pressed); 13892Assert.True(item.Pressed); 13901Assert.False(item.Pressed); 13909Assert.False(item.Pressed); 13936Assert.True(item.Pressed); 13945Assert.False(item.Pressed); 13956Assert.False(item.Pressed); 13991Assert.True(item.Pressed); 13998Assert.False(item.Pressed); 14018Assert.True(item.Pressed); 14025Assert.False(item.Pressed); 14045Assert.True(item.Pressed); 14052Assert.False(item.Pressed); 14067Assert.False(item.Pressed); 14085Assert.True(item.Pressed); 14092Assert.False(item.Pressed);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
74Assert.False(item.Pressed);