69 references to Item
System.Windows.Forms (69)
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (30)
94
if (e.
Item
.Pressed) {
95
e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, new Rectangle(0, 0, e.
Item
.Width - 1, e.
Item
.Height - 1));
116
checkColorMap[0].NewColor = ((e.
Item
.Selected || e.
Item
.Pressed) && e.
Item
.Enabled) ?
137
ToolStripSplitButton item = e.
Item
as ToolStripSplitButton;
138
Rectangle bounds = new Rectangle(Point.Empty, e.
Item
.Size);
174
if (!e.
Item
.IsOnDropDown && e.
Item
.Pressed) {
175
e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, 0, 0, e.
Item
.Width - 1, e.
Item
.Height - 1);
182
ToolStripItem item = e.
Item
;
196
if (AccessibilityImprovements.Level2 && e.
Item
.Selected && (!e.
Item
.Pressed || e.
Item
is ToolStripButton)) {
201
if (e.
Item
.Selected || e.
Item
.Pressed) {
213
typeof(ToolStripButton).IsAssignableFrom(e.
Item
.GetType()) &&
214
((ToolStripButton)e.
Item
).DisplayStyle != ToolStripItemDisplayStyle.Image &&
215
((ToolStripButton)e.
Item
).Checked) {
313
Rectangle bounds = new Rectangle(Point.Empty, e.
Item
.Size);
359
ToolStripItem item = e.
Item
;
362
if (IsHighContrastWhiteOnBlack() && !(FillWhenSelected && (e.
Item
.Pressed || e.
Item
.Selected))) {
390
ToolStripButton button = e.
Item
as ToolStripButton;
393
Rectangle bounds = new Rectangle(Point.Empty, e.
Item
.Size);
420
Rectangle bounds = new Rectangle(Point.Empty, e.
Item
.Size);
422
if (e.
Item
.Pressed) {
430
else if (e.
Item
.Selected) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (26)
147
ToolStripItem item = e.
Item
;
213
ToolStripDropDownItem item = e.
Item
as ToolStripDropDownItem;
232
RenderSeparatorInternal(e.Graphics, e.
Item
, new Rectangle(Point.Empty, e.
Item
.Size), e.Vertical);
242
ToolStripSplitButton item = e.
Item
as ToolStripSplitButton;
290
ToolStripStatusLabel item = e.
Item
as ToolStripStatusLabel;
312
ToolStripButton item = e.
Item
as ToolStripButton;
490
ToolStripItem item = e.
Item
;
628
if (e.
Item
is ToolStripMenuItem && (e.
Item
.Selected || e.
Item
.Pressed)) {
629
e.DefaultTextColor = e.
Item
.ForeColor;
655
if (e.
Item
is ToolStripMenuItem) {
656
ToolStripMenuItem item = e.
Item
as ToolStripMenuItem;
666
if (!e.
Item
.Enabled) {
672
if (e.
Item
.ImageScaling == ToolStripItemImageScaling.None) {
909
Rectangle bounds = DpiHelper.IsScalingRequired ? new Rectangle(e.ImageRectangle.Left-2, (e.
Item
.Height - e.ImageRectangle.Height )/2- 1, e.ImageRectangle.Width+4, e.ImageRectangle.Height +2) :
910
new Rectangle(e.ImageRectangle.Left - 2, 1, e.ImageRectangle.Width + 4, e.
Item
.Height - 2);
914
Color fill = (e.
Item
.Selected) ? ColorTable.CheckSelectedBackground : ColorTable.CheckBackground;
915
fill = (e.
Item
.Pressed) ? ColorTable.CheckPressedBackground : fill;
925
if (e.
Item
.Pressed) {
957
ToolStripItem item = e.
Item
;
1052
ScaleObjectSizesIfNeeded(e.
Item
.DeviceDpi);
1055
ToolStripOverflowButton item = e.
Item
as ToolStripOverflowButton;
1056
Rectangle overflowBoundsFill = new Rectangle(Point.Empty, e.
Item
.Size);
1370
ToolStripItem item = e.
Item
;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (5)
870
if (e.ShiftOnPress && e.
Item
.Pressed) {
873
if (!e.
Item
.Enabled) {
877
if (e.
Item
.ImageScaling == ToolStripItemImageScaling.None) {
903
if (!e.
Item
.Enabled) {
924
ToolStripItem item = e.
Item
;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (8)
333
ToolStripItem item = e.
Item
;
364
ToolStripMenuItem item = e.
Item
as ToolStripMenuItem;
437
RenderSeparatorInternal(e.Graphics, e.
Item
, new Rectangle(Point.Empty, e.
Item
.Size), e.Vertical);
444
ToolStripStatusLabel item = e.
Item
as ToolStripStatusLabel;
455
ToolStripSplitButton splitButton = e.
Item
as ToolStripSplitButton;
564
ToolStripItem item = e.
Item
;
699
ToolStripItem item = e.
Item
;