1 override of Pressed
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
269
public 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)
281
return base.
Pressed
;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (7)
98
if (e.Item.
Pressed
)
179
if (!e.Item.IsOnDropDown && e.Item.
Pressed
)
206
: item.Selected && !item.
Pressed
? SystemColors.HighlightText
218
if (e.Item.Selected && (!e.Item.
Pressed
|| e.Item is ToolStripButton))
225
if (e.Item.Selected || e.Item.
Pressed
)
444
if (e.Item.
Pressed
)
494
if (IsHighContrastWhiteOnBlack() && !(FillWhenSelected && (item.
Pressed
|| item.Selected)))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
187
if (_ownerItem.Selected || _ownerItem.
Pressed
)
192
if (_ownerItem.
Pressed
)
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
361
if (
Pressed
)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
613
if (item.
Pressed
)
715
if (e.Item is ToolStripMenuItem && (e.Item.Selected || e.Item.
Pressed
))
914
if (item.
Pressed
)
1057
fill = (e.Item.
Pressed
) ? ColorTable.CheckPressedBackground : fill;
1066
if (e.Item.
Pressed
)
1577
if (item.
Pressed
)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
784
if (e.ShiftOnPress && e.Item is not null && e.Item.
Pressed
)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
98
return SplitButtonButton.
Pressed
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
168
else if (item.
Pressed
)
System.Windows.Forms.Tests (62)
System\Windows\Forms\ToolStripButtonTests.cs (19)
77
Assert.False(item.
Pressed
);
158
Assert.False(item.
Pressed
);
245
Assert.False(item.
Pressed
);
335
Assert.False(item.
Pressed
);
423
Assert.False(item.
Pressed
);
521
Assert.False(item.
Pressed
);
1526
Assert.True(item.
Pressed
);
1533
Assert.False(item.
Pressed
);
1553
Assert.True(item.
Pressed
);
1560
Assert.False(item.
Pressed
);
1580
Assert.True(item.
Pressed
);
1587
Assert.False(item.
Pressed
);
1605
Assert.True(item.
Pressed
);
1612
Assert.False(item.
Pressed
);
1632
Assert.True(item.
Pressed
);
1639
Assert.False(item.
Pressed
);
1659
Assert.True(item.
Pressed
);
1666
Assert.False(item.
Pressed
);
1680
Assert.False(item.
Pressed
);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
106
Assert.False(item.
Pressed
);
4367
Assert.False(item.
Pressed
);
System\Windows\Forms\ToolStripItemTests.cs (40)
76
Assert.False(item.
Pressed
);
161
Assert.False(item.
Pressed
);
256
Assert.False(item.
Pressed
);
2571
Assert.False(item.
Pressed
);
10925
Assert.False(item.
Pressed
);
13616
Assert.True(item.
Pressed
);
13624
Assert.False(item.
Pressed
);
13630
Assert.False(item.
Pressed
);
13650
Assert.False(item.
Pressed
);
13658
Assert.False(item.
Pressed
);
13664
Assert.False(item.
Pressed
);
13681
Assert.False(grip.
Pressed
);
13693
Assert.False(grip.
Pressed
);
13701
Assert.False(grip.
Pressed
);
13720
Assert.False(item.
Pressed
);
13728
Assert.False(item.
Pressed
);
13734
Assert.False(item.
Pressed
);
13752
Assert.True(item.
Pressed
);
13769
Assert.False(item.
Pressed
);
13777
Assert.False(item.
Pressed
);
13785
Assert.False(item.
Pressed
);
13811
Assert.True(item.
Pressed
);
13828
Assert.False(item.
Pressed
);
13839
Assert.False(item.
Pressed
);
13850
Assert.False(item.
Pressed
);
13873
Assert.True(item.
Pressed
);
13882
Assert.False(item.
Pressed
);
13890
Assert.False(item.
Pressed
);
13917
Assert.True(item.
Pressed
);
13926
Assert.False(item.
Pressed
);
13937
Assert.False(item.
Pressed
);
13972
Assert.True(item.
Pressed
);
13979
Assert.False(item.
Pressed
);
13999
Assert.True(item.
Pressed
);
14006
Assert.False(item.
Pressed
);
14026
Assert.True(item.
Pressed
);
14033
Assert.False(item.
Pressed
);
14048
Assert.False(item.
Pressed
);
14066
Assert.True(item.
Pressed
);
14073
Assert.False(item.
Pressed
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
74
Assert.False(item.
Pressed
);