1 write to ToolStrip
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
30ToolStrip = toolStrip.OrThrowIfNull();
60 references to ToolStrip
System.Windows.Forms (56)
System\Windows\Forms\Controls\ToolStrips\ToolStripGripRenderEventArgs.cs (3)
21public Rectangle GripBounds => ToolStrip.GripRectangle; 26public ToolStripGripDisplayStyle GripDisplayStyle => ToolStrip.GripDisplayStyle; 31public ToolStripGripStyle GripStyle => ToolStrip.GripStyle;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (7)
58ToolStrip toolStrip = e.ToolStrip; 258Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 261if (e.ToolStrip is ToolStripDropDown) 265if (e.ToolStrip is not ToolStripOverflow) 271else if (e.ToolStrip is MenuStrip) 275else if (e.ToolStrip is StatusStrip) 287Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (5)
25if (e.ToolStrip is ToolStripDropDown) 33if (e.ToolStrip is MenuStrip) 37else if (e.ToolStrip is StatusStrip) 41else if (e.ToolStrip is ToolStripDropDown) 53Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (20)
118ToolStrip toolStrip = e.ToolStrip; 400ToolStrip toolStrip = e.ToolStrip; 479ScaleObjectSizesIfNeeded(e.ToolStrip.DeviceDpi); 483ToolStrip toolStrip = e.ToolStrip; 485bool rightToLeft = (e.ToolStrip.RightToLeft == RightToLeft.Yes); 694ScaleObjectSizesIfNeeded(e.ToolStrip.DeviceDpi); 699RightToLeft rightToLeft = e.ToolStrip.RightToLeft; 703FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 902ToolStrip toolStrip = e.ToolStrip; 1025e.Graphics.DrawLine(p, 0, 0, e.ToolStrip.Width, 0); 1030StatusStrip? statusStrip = e.ToolStrip as StatusStrip; 1100RenderBackgroundGradient(e.Graphics, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation); 1170ScaleObjectSizesIfNeeded(e.ToolStrip.DeviceDpi); 1172ToolStrip toolStrip = e.ToolStrip; 1173Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1182Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1192if (e.ToolStrip is ToolStripDropDown toolStripDropDown) 1337Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1338ToolStrip toolStrip = e.ToolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
1041if (e.ToolStrip is not StatusStrip statusStrip) 1057int scaledDefaultGripAreaHeight = ScaleHelper.ScaleToDpi(20, e.ToolStrip.DeviceDpi);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (7)
63if (ToolStrip is null) 69_backColor = ToolStrip.RawBackColor; 75if (ToolStrip is ToolStripDropDown) 79else if (ToolStrip is MenuStrip) 96if (ToolStrip is ToolStripDropDown dropDown) 109Rectangle itemBounds = new(ToolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size); 111Rectangle overlap = ToolStrip.ClientRectangle;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (5)
119ToolStrip toolStrip = e.ToolStrip; 173ToolStrip toolStrip = e.ToolStrip; 182Rectangle bounds = e.ToolStrip.ClientRectangle; 213Rectangle bounds = e.ToolStrip.ClientRectangle; 524ToolStrip toolStrip = e.ToolStrip;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (7)
231ToolStrip toolStrip = e.ToolStrip; 289ToolStrip toolStrip = e.ToolStrip; 356Color backColor = e.ToolStrip.BackColor; 378RenderSmall3DBorderInternal(g, bounds, ToolBarState.Hot, e.ToolStrip.RightToLeft == RightToLeft.Yes); 825e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, 0, e.ToolStrip.Width, 0); 835vsRenderer.DrawBackground(e.Graphics, new Rectangle(0, 0, e.ToolStrip.Width - 1, e.ToolStrip.Height - 1));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1829Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
51Assert.Equal(toolStrip, e.ToolStrip);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
47Assert.Same(toolStrip, e.ToolStrip); 71Assert.Same(toolStrip, e.ToolStrip);