25 references to Custom
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
1555return ToolStripRenderMode.Custom; 1564: ToolStripRenderMode.Custom; 1570if (value == ToolStripRenderMode.Custom) 4474return (RenderMode is not ToolStripRenderMode.ManagerRenderMode and not ToolStripRenderMode.Custom);
System\Windows\Forms\Controls\ToolStrips\ToolStripManagerRenderMode.cs (1)
11Custom = ToolStripRenderMode.Custom,
System\Windows\Forms\Controls\ToolStrips\ToolStripRendererSwitcher.cs (4)
85return ToolStripRenderMode.Custom; 100return ToolStripRenderMode.Custom; 106if (value == ToolStripRenderMode.Custom) 177return RenderMode != _defaultRenderMode && RenderMode != ToolStripRenderMode.Custom;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (1)
98if (renderMode == ToolStripRenderMode.Custom)
System.Windows.Forms.Tests (15)
System\Windows\Forms\StatusStripTests.cs (3)
562Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 590Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 614Assert.Throws<NotSupportedException>(() => control.RenderMode = ToolStripRenderMode.Custom);
System\Windows\Forms\ToolStripContentPanelTests.cs (7)
1152Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1159Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1192Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1202Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1429Assert.Throws<NotSupportedException>(() => control.RenderMode = ToolStripRenderMode.Custom); 1448Assert.Equal(ToolStripRenderMode.Custom, item.RenderMode); 1476Assert.Equal(ToolStripRenderMode.Custom, item.RenderMode);
System\Windows\Forms\ToolStripTests.cs (5)
3235Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 3240Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 3388Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 3416Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 3440Assert.Throws<NotSupportedException>(() => control.RenderMode = ToolStripRenderMode.Custom);