14 writes to RenderMode
System.Windows.Forms.Tests (14)
System\Windows\Forms\ToolStripContentPanelTests.cs (14)
1299control.RenderMode = ToolStripRenderMode.System; 1308control.RenderMode = value; 1315control.RenderMode = value; 1385control.RenderMode = ToolStripRenderMode.System; 1397control.RenderMode = value; 1407control.RenderMode = value; 1422Assert.Throws<InvalidEnumArgumentException>("value", () => control.RenderMode = value); 1429Assert.Throws<NotSupportedException>(() => control.RenderMode = ToolStripRenderMode.Custom); 1439item.RenderMode = ToolStripRenderMode.Professional; 1443item.RenderMode = ToolStripRenderMode.System; 1451item.RenderMode = ToolStripRenderMode.ManagerRenderMode; 1467item.RenderMode = ToolStripRenderMode.Professional; 1471item.RenderMode = ToolStripRenderMode.System; 1479item.RenderMode = ToolStripRenderMode.ManagerRenderMode;
25 references to RenderMode
System.Windows.Forms.Tests (25)
System\Windows\Forms\ToolStripContentPanelTests.cs (25)
102Assert.Equal(ToolStripRenderMode.System, control.RenderMode); 1152Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1159Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1168Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.RenderMode); 1192Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1202Assert.Equal(ToolStripRenderMode.Custom, control.RenderMode); 1214Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.RenderMode); 1300Assert.Equal(ToolStripRenderMode.System, control.RenderMode); 1309Assert.Equal(value, control.RenderMode); 1316Assert.Equal(value, control.RenderMode); 1386Assert.Equal(ToolStripRenderMode.System, control.RenderMode); 1398Assert.Equal(value, control.RenderMode); 1408Assert.Equal(value, control.RenderMode); 1435PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)]; 1440Assert.Equal(ToolStripRenderMode.Professional, item.RenderMode); 1444Assert.Equal(ToolStripRenderMode.System, item.RenderMode); 1448Assert.Equal(ToolStripRenderMode.Custom, item.RenderMode); 1452Assert.Equal(ToolStripRenderMode.ManagerRenderMode, item.RenderMode); 1456Assert.Equal(ToolStripRenderMode.System, item.RenderMode); 1463PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripContentPanel))[nameof(ToolStripContentPanel.RenderMode)]; 1468Assert.Equal(ToolStripRenderMode.Professional, item.RenderMode); 1472Assert.Equal(ToolStripRenderMode.System, item.RenderMode); 1476Assert.Equal(ToolStripRenderMode.Custom, item.RenderMode); 1480Assert.Equal(ToolStripRenderMode.ManagerRenderMode, item.RenderMode); 1484Assert.Equal(ToolStripRenderMode.System, item.RenderMode);