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)
1391
((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
);
10944
Assert.False(item.
Pressed
);
13635
Assert.True(item.
Pressed
);
13643
Assert.False(item.
Pressed
);
13649
Assert.False(item.
Pressed
);
13669
Assert.False(item.
Pressed
);
13677
Assert.False(item.
Pressed
);
13683
Assert.False(item.
Pressed
);
13700
Assert.False(grip.
Pressed
);
13712
Assert.False(grip.
Pressed
);
13720
Assert.False(grip.
Pressed
);
13739
Assert.False(item.
Pressed
);
13747
Assert.False(item.
Pressed
);
13753
Assert.False(item.
Pressed
);
13771
Assert.True(item.
Pressed
);
13788
Assert.False(item.
Pressed
);
13796
Assert.False(item.
Pressed
);
13804
Assert.False(item.
Pressed
);
13830
Assert.True(item.
Pressed
);
13847
Assert.False(item.
Pressed
);
13858
Assert.False(item.
Pressed
);
13869
Assert.False(item.
Pressed
);
13892
Assert.True(item.
Pressed
);
13901
Assert.False(item.
Pressed
);
13909
Assert.False(item.
Pressed
);
13936
Assert.True(item.
Pressed
);
13945
Assert.False(item.
Pressed
);
13956
Assert.False(item.
Pressed
);
13991
Assert.True(item.
Pressed
);
13998
Assert.False(item.
Pressed
);
14018
Assert.True(item.
Pressed
);
14025
Assert.False(item.
Pressed
);
14045
Assert.True(item.
Pressed
);
14052
Assert.False(item.
Pressed
);
14067
Assert.False(item.
Pressed
);
14085
Assert.True(item.
Pressed
);
14092
Assert.False(item.
Pressed
);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
74
Assert.False(item.
Pressed
);