36 writes to RenderMode
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
35
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4020
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
956
menu.
RenderMode
= ToolStripRenderMode.System;
System.Windows.Forms.Tests (33)
System\Windows\Forms\StatusStripTests.cs (15)
481
control.
RenderMode
= ToolStripRenderMode.System;
489
control.
RenderMode
= value;
495
control.
RenderMode
= value;
501
control.
RenderMode
= ToolStripRenderMode.System;
526
control.
RenderMode
= value;
532
control.
RenderMode
= value;
538
control.
RenderMode
= ToolStripRenderMode.System;
553
control.
RenderMode
= ToolStripRenderMode.Professional;
557
control.
RenderMode
= ToolStripRenderMode.System;
565
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
581
control.
RenderMode
= ToolStripRenderMode.Professional;
585
control.
RenderMode
= ToolStripRenderMode.System;
593
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
607
Assert.Throws<InvalidEnumArgumentException>("value", () => control.
RenderMode
= value);
614
Assert.Throws<NotSupportedException>(() => control.
RenderMode
= ToolStripRenderMode.Custom);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
1339
control.
RenderMode
= value;
1346
control.
RenderMode
= value;
1353
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
System\Windows\Forms\ToolStripTests.cs (15)
3307
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
3315
control.
RenderMode
= value;
3321
control.
RenderMode
= value;
3327
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
3352
control.
RenderMode
= value;
3358
control.
RenderMode
= value;
3364
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
3379
control.
RenderMode
= ToolStripRenderMode.Professional;
3383
control.
RenderMode
= ToolStripRenderMode.System;
3391
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
3407
control.
RenderMode
= ToolStripRenderMode.Professional;
3411
control.
RenderMode
= ToolStripRenderMode.System;
3419
control.
RenderMode
= ToolStripRenderMode.ManagerRenderMode;
3433
Assert.Throws<InvalidEnumArgumentException>("value", () => control.
RenderMode
= value);
3440
Assert.Throws<NotSupportedException>(() => control.
RenderMode
= ToolStripRenderMode.Custom);
52 references to RenderMode
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
1504
if (
RenderMode
== ToolStripRenderMode.ManagerRenderMode)
1515
_renderer = ToolStripManager.CreateRenderer(
RenderMode
);
4474
return (
RenderMode
is not ToolStripRenderMode.ManagerRenderMode and not ToolStripRenderMode.Custom);
System.Windows.Forms.Tests (49)
System\Windows\Forms\MenuStripTests.cs (1)
126
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
System\Windows\Forms\StatusStripTests.cs (20)
126
Assert.True(control.
RenderMode
is ToolStripRenderMode.System or ToolStripRenderMode.ManagerRenderMode);
482
Assert.Equal(ToolStripRenderMode.System, control.
RenderMode
);
490
Assert.Equal(value, control.
RenderMode
);
496
Assert.Equal(value, control.
RenderMode
);
502
Assert.Equal(ToolStripRenderMode.System, control.
RenderMode
);
527
Assert.Equal(value, control.
RenderMode
);
533
Assert.Equal(value, control.
RenderMode
);
539
Assert.Equal(ToolStripRenderMode.System, control.
RenderMode
);
549
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.
RenderMode
)];
554
Assert.Equal(ToolStripRenderMode.Professional, control.
RenderMode
);
558
Assert.Equal(ToolStripRenderMode.System, control.
RenderMode
);
562
Assert.Equal(ToolStripRenderMode.Custom, control.
RenderMode
);
566
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
570
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
577
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(StatusStrip))[nameof(ToolStrip.
RenderMode
)];
582
Assert.Equal(ToolStripRenderMode.Professional, control.
RenderMode
);
586
Assert.Equal(ToolStripRenderMode.System, control.
RenderMode
);
590
Assert.Equal(ToolStripRenderMode.Custom, control.
RenderMode
);
594
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
598
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
1340
Assert.Equal(value, control.
RenderMode
);
1347
Assert.Equal(value, control.
RenderMode
);
1354
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
134
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
System\Windows\Forms\ToolStripTests.cs (24)
142
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
297
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3235
Assert.Equal(ToolStripRenderMode.Custom, control.
RenderMode
);
3240
Assert.Equal(ToolStripRenderMode.Custom, control.
RenderMode
);
3247
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3308
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3316
Assert.Equal(value, control.
RenderMode
);
3322
Assert.Equal(value, control.
RenderMode
);
3328
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3353
Assert.Equal(value, control.
RenderMode
);
3359
Assert.Equal(value, control.
RenderMode
);
3365
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3375
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.
RenderMode
)];
3380
Assert.Equal(ToolStripRenderMode.Professional, control.
RenderMode
);
3384
Assert.Equal(ToolStripRenderMode.System, control.
RenderMode
);
3388
Assert.Equal(ToolStripRenderMode.Custom, control.
RenderMode
);
3392
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3396
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3403
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStrip))[nameof(ToolStrip.
RenderMode
)];
3408
Assert.Equal(ToolStripRenderMode.Professional, control.
RenderMode
);
3412
Assert.Equal(ToolStripRenderMode.System, control.
RenderMode
);
3416
Assert.Equal(ToolStripRenderMode.Custom, control.
RenderMode
);
3420
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);
3424
Assert.Equal(ToolStripRenderMode.ManagerRenderMode, control.
RenderMode
);