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)); 116checkColorMap[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; 196if (AccessibilityImprovements.Level2 && e.Item.Selected && (!e.Item.Pressed || e.Item is ToolStripButton)) { 201if (e.Item.Selected || e.Item.Pressed) { 213typeof(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))) { 390ToolStripButton button = e.Item as ToolStripButton; 393Rectangle 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)
147ToolStripItem item = e.Item; 213ToolStripDropDownItem item = e.Item as ToolStripDropDownItem; 232RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 242ToolStripSplitButton item = e.Item as ToolStripSplitButton; 290ToolStripStatusLabel item = e.Item as ToolStripStatusLabel; 312ToolStripButton item = e.Item as ToolStripButton; 490ToolStripItem item = e.Item; 628if (e.Item is ToolStripMenuItem && (e.Item.Selected || e.Item.Pressed)) { 629e.DefaultTextColor = e.Item.ForeColor; 655if (e.Item is ToolStripMenuItem) { 656ToolStripMenuItem item = e.Item as ToolStripMenuItem; 666if (!e.Item.Enabled) { 672if (e.Item.ImageScaling == ToolStripItemImageScaling.None) { 909Rectangle 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) : 910new Rectangle(e.ImageRectangle.Left - 2, 1, e.ImageRectangle.Width + 4, e.Item.Height - 2); 914Color fill = (e.Item.Selected) ? ColorTable.CheckSelectedBackground : ColorTable.CheckBackground; 915fill = (e.Item.Pressed) ? ColorTable.CheckPressedBackground : fill; 925if (e.Item.Pressed) { 957ToolStripItem item = e.Item; 1052ScaleObjectSizesIfNeeded(e.Item.DeviceDpi); 1055ToolStripOverflowButton item = e.Item as ToolStripOverflowButton; 1056Rectangle overflowBoundsFill = new Rectangle(Point.Empty, e.Item.Size); 1370ToolStripItem item = e.Item;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (5)
870if (e.ShiftOnPress && e.Item.Pressed) { 873if (!e.Item.Enabled) { 877if (e.Item.ImageScaling == ToolStripItemImageScaling.None) { 903if (!e.Item.Enabled) { 924ToolStripItem item = e.Item;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (8)
333ToolStripItem item = e.Item; 364ToolStripMenuItem item = e.Item as ToolStripMenuItem; 437RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 444ToolStripStatusLabel item = e.Item as ToolStripStatusLabel; 455ToolStripSplitButton splitButton = e.Item as ToolStripSplitButton; 564ToolStripItem item = e.Item; 699ToolStripItem item = e.Item;