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