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