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