39 writes to Renderer
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1588Renderer = ToolStripManager.CreateRenderer(value);
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionUI.cs (1)
701Renderer = new NoBorderRenderer(),
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
122_selectionMenuItem.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!; 202Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!;
System\Windows\Forms\Design\NewItemsContextMenuStrip.cs (1)
30Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]!;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
362menu.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"];
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
392contextMenu.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
81item.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.Styles["VsRenderer"]; 169_alignmentToolStripMenuItem.DropDown.Renderer = renderer; 170_displayStyleToolStripMenuItem.DropDown.Renderer = renderer;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1495_miniToolStrip.Renderer = _renderer;
System.Windows.Forms.Tests (28)
System\Windows\Forms\StatusStripTests.cs (3)
516Renderer = new SubToolStripRenderer() 561control.Renderer = new SubToolStripRenderer(); 589control.Renderer = new SubToolStripRenderer();
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
19Renderer = new ToolStripProfessionalRenderer(new CustomColorTable()),
System\Windows\Forms\ToolStripButtonTests.cs (3)
1271Renderer = renderer 1362Renderer = renderer 1461Renderer = renderer
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (4)
68toolStrip.Renderer = new ToolStripSystemHighContrastRenderer(); 94toolStrip.Renderer = new ToolStripSystemHighContrastRenderer(); 120toolStrip.Renderer = new ToolStripSystemHighContrastRenderer(); 147toolStrip.Renderer = new ToolStripSystemHighContrastRenderer();
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1329Renderer = new SubToolStripRenderer()
System\Windows\Forms\ToolStripSeparatorTests.cs (6)
1132Renderer = renderer 1168Renderer = renderer 1220Renderer = renderer1 1225Renderer = renderer2 1291Renderer = renderer1 1296Renderer = renderer2
System\Windows\Forms\ToolStripTests.cs (10)
3232Renderer = value 3238control.Renderer = value; 3243control.Renderer = null; 3265control.Renderer = renderer; 3270control.Renderer = renderer; 3275control.Renderer = null; 3283control.Renderer = renderer; 3342Renderer = new SubToolStripRenderer() 3387control.Renderer = new SubToolStripRenderer(); 3415control.Renderer = new SubToolStripRenderer();
89 references to Renderer
System.Windows.Forms (15)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
328Renderer.DrawStatusStripSizingGrip(new ToolStripRenderEventArgs(e.Graphics, this));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
1501return dropDown.OwnerToolStrip.Renderer; 2631using Region? transparentRegion = Renderer.GetTransparentRegion(this); 3134InitializeRenderer(Renderer); 3455using Region? transparentRegion = Renderer.GetTransparentRegion(this); 3594Renderer.DrawToolStripBorder(new ToolStripRenderEventArgs(toolstripGraphics, this)); 3643using (Region? transparentRegion = Renderer.GetTransparentRegion(this)) 3652Renderer.DrawToolStripBackground(new ToolStripRenderEventArgs(g, this)); 3682Renderer.DrawGrip(new ToolStripGripRenderEventArgs(e.Graphics, this));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
568Renderer.DrawImageMargin(new ToolStripRenderEventArgs(e.Graphics, this, ImageMargin, SystemColors.Control));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
1628return Owner.Renderer; 1631return ParentInternal?.Renderer;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
113ToolStripRenderer renderer = ParentInternal.Renderer;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (2)
82Renderer.DrawToolStripBackground(new ToolStripRenderEventArgs(e.Graphics, this)); 83Renderer.DrawToolStripBorder(new ToolStripRenderEventArgs(e.Graphics, this));
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (2)
68if (miniToolStrip.Renderer is ToolStripTemplateNode.MiniToolStripRenderer renderer) 80if (miniToolStrip.Renderer is ToolStripTemplateNode.MiniToolStripRenderer renderer)
System.Windows.Forms.Tests (72)
System\Windows\Forms\MenuStripTests.cs (4)
123Assert.NotNull(control.Renderer); 124Assert.Same(control.Renderer, control.Renderer); 125Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer);
System\Windows\Forms\StatusStripTests.cs (20)
122Assert.NotNull(control.Renderer); 123Assert.Same(control.Renderer, control.Renderer); 125Assert.True(control.Renderer is ToolStripSystemRenderer or ToolStripProfessionalRenderer, "Renderer is not one of the expected types."); 483Assert.NotNull(control.Renderer); 484Assert.Same(control.Renderer, control.Renderer); 485Assert.IsType<ToolStripSystemRenderer>(control.Renderer); 491Assert.IsType(expectedRendererType, control.Renderer); 497Assert.IsType(expectedRendererType, control.Renderer); 503Assert.NotNull(control.Renderer); 504Assert.Same(control.Renderer, control.Renderer); 505Assert.IsType<ToolStripSystemRenderer>(control.Renderer); 528Assert.IsType(expectedRendererType, control.Renderer); 534Assert.IsType(expectedRendererType, control.Renderer); 540Assert.NotNull(control.Renderer); 541Assert.Same(control.Renderer, control.Renderer); 542Assert.IsType<ToolStripSystemRenderer>(control.Renderer);
System\Windows\Forms\ToolStripContentPanelTests.cs (6)
1341Assert.IsType(expectedRendererType, control.Renderer); 1348Assert.IsType(expectedRendererType, control.Renderer); 1355Assert.NotNull(control.Renderer); 1356Assert.Same(control.Renderer, control.Renderer); 1357Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
131Assert.NotNull(control.Renderer); 132Assert.Same(control.Renderer, control.Renderer); 133Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer);
System\Windows\Forms\ToolStripItemTests.cs (1)
397Assert.Same(toolStrip.Renderer, item.Renderer);
System\Windows\Forms\ToolStripTests.cs (37)
139Assert.NotNull(control.Renderer); 140Assert.Same(control.Renderer, control.Renderer); 141Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer); 294Assert.NotNull(control.Renderer); 295Assert.Same(control.Renderer, control.Renderer); 296Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer); 3234Assert.Same(value, control.Renderer); 3239Assert.Same(value, control.Renderer); 3244Assert.NotNull(control.Renderer); 3245Assert.NotSame(value, control.Renderer); 3246Assert.Same(control.Renderer, control.Renderer); 3266Assert.Same(renderer, control.Renderer); 3271Assert.Same(renderer, control.Renderer); 3276Assert.NotNull(control.Renderer); 3277Assert.NotSame(renderer, control.Renderer); 3278Assert.Same(control.Renderer, control.Renderer); 3284Assert.Same(renderer, control.Renderer); 3309Assert.NotNull(control.Renderer); 3310Assert.Same(control.Renderer, control.Renderer); 3311Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer); 3317Assert.IsType(expectedRendererType, control.Renderer); 3323Assert.IsType(expectedRendererType, control.Renderer); 3329Assert.NotNull(control.Renderer); 3330Assert.Same(control.Renderer, control.Renderer); 3331Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer); 3354Assert.IsType(expectedRendererType, control.Renderer); 3360Assert.IsType(expectedRendererType, control.Renderer); 3366Assert.NotNull(control.Renderer); 3367Assert.Same(control.Renderer, control.Renderer); 3368Assert.IsType<ToolStripProfessionalRenderer>(control.Renderer);