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