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)
1388((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); 10925Assert.False(item.Pressed); 13616Assert.True(item.Pressed); 13624Assert.False(item.Pressed); 13630Assert.False(item.Pressed); 13650Assert.False(item.Pressed); 13658Assert.False(item.Pressed); 13664Assert.False(item.Pressed); 13681Assert.False(grip.Pressed); 13693Assert.False(grip.Pressed); 13701Assert.False(grip.Pressed); 13720Assert.False(item.Pressed); 13728Assert.False(item.Pressed); 13734Assert.False(item.Pressed); 13752Assert.True(item.Pressed); 13769Assert.False(item.Pressed); 13777Assert.False(item.Pressed); 13785Assert.False(item.Pressed); 13811Assert.True(item.Pressed); 13828Assert.False(item.Pressed); 13839Assert.False(item.Pressed); 13850Assert.False(item.Pressed); 13873Assert.True(item.Pressed); 13882Assert.False(item.Pressed); 13890Assert.False(item.Pressed); 13917Assert.True(item.Pressed); 13926Assert.False(item.Pressed); 13937Assert.False(item.Pressed); 13972Assert.True(item.Pressed); 13979Assert.False(item.Pressed); 13999Assert.True(item.Pressed); 14006Assert.False(item.Pressed); 14026Assert.True(item.Pressed); 14033Assert.False(item.Pressed); 14048Assert.False(item.Pressed); 14066Assert.True(item.Pressed); 14073Assert.False(item.Pressed);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
74Assert.False(item.Pressed);