53 references to Normal
System.Windows.Forms (11)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
405[DefaultValue(DrawMode.Normal)] 410get => Properties.GetValueOrDefault(s_propDrawMode, DrawMode.Normal); 418Properties.AddOrRemoveValue(s_propDrawMode, value, defaultValue: DrawMode.Normal); 602if (DrawMode != DrawMode.Normal) 826if (DrawMode != DrawMode.Normal)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
136return DrawMode.Normal;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (5)
67private DrawMode _drawMode = DrawMode.Normal; 326case DrawMode.Normal: 390[DefaultValue(DrawMode.Normal)] 655if (DrawMode != DrawMode.Normal) 2167return ItemHeight != DefaultListBoxItemHeight && _drawMode != DrawMode.Normal;
System.Windows.Forms.Tests (41)
CheckedListBoxTests.cs (4)
74Assert.Equal(DrawMode.Normal, result); 82box.DrawMode.Should().Be(DrawMode.Normal); 85box.DrawMode.Should().Be(DrawMode.Normal); 88box.DrawMode.Should().Be(DrawMode.Normal);
System\Windows\Forms\ComboBoxTests.cs (2)
69Assert.Equal(DrawMode.Normal, control.DrawMode); 2615[InlineData(DrawMode.Normal)]
System\Windows\Forms\ListBoxTests.cs (35)
66Assert.Equal(DrawMode.Normal, control.DrawMode); 321[InlineData(DrawMode.Normal, 0x562100C1)] 874yield return new object[] { autoSize, true, DrawMode.Normal }; 875yield return new object[] { autoSize, false, DrawMode.Normal }; 910yield return new object[] { true, true, DrawMode.Normal, 0 }; 911yield return new object[] { true, false, DrawMode.Normal, 0 }; 912yield return new object[] { false, true, DrawMode.Normal, 0 }; 913yield return new object[] { false, false, DrawMode.Normal, 0 }; 975yield return new object[] { autoSize, true, DrawMode.Normal, 0 }; 976yield return new object[] { autoSize, false, DrawMode.Normal, 0 }; 1741yield return new object[] { DrawMode.Normal, integralHeight, 1, 0 }; 1742yield return new object[] { DrawMode.Normal, integralHeight, Control.DefaultFont.Height, 0 }; 1743yield return new object[] { DrawMode.Normal, integralHeight, 255, 0 }; 1789[InlineData(DrawMode.Normal, false)] 1818Assert.True(control.DrawMode is DrawMode.Normal); 1874yield return new object[] { DrawMode.Normal, true }; 1875yield return new object[] { DrawMode.Normal, false }; 1905yield return new object[] { DrawMode.Normal, true, 1 }; 1906yield return new object[] { DrawMode.Normal, false, 0 }; 2051yield return new object[] { DrawMode.Normal, BorderStyle.Fixed3D, Control.DefaultFont.Height + extra }; 2052yield return new object[] { DrawMode.Normal, BorderStyle.FixedSingle, Control.DefaultFont.Height + extra }; 2053yield return new object[] { DrawMode.Normal, BorderStyle.None, Control.DefaultFont.Height }; 2080yield return new object[] { DrawMode.Normal, BorderStyle.Fixed3D, (Control.DefaultFont.Height * 2) + extra }; 2081yield return new object[] { DrawMode.Normal, BorderStyle.FixedSingle, (Control.DefaultFont.Height * 2) + extra }; 2082yield return new object[] { DrawMode.Normal, BorderStyle.None, (Control.DefaultFont.Height * 2) }; 2110yield return new object[] { DrawMode.Normal, BorderStyle.Fixed3D }; 2111yield return new object[] { DrawMode.Normal, BorderStyle.FixedSingle }; 2112yield return new object[] { DrawMode.Normal, BorderStyle.None }; 5177[InlineData(DrawMode.Normal)] 5228yield return new object[] { DrawMode.Normal, 0, 0, 0, 0 }; 5229yield return new object[] { DrawMode.Normal, 1, 0, -2, -2 }; 5230yield return new object[] { DrawMode.Normal, 0, 0, 10, 10 }; 6285[InlineData(DrawMode.Normal, false)] 6355DrawMode = DrawMode.Normal, 6379DrawMode = DrawMode.Normal,
WinFormsControlsTest (1)
ListBoxes.Designer.cs (1)
67this.listBox1.DrawMode = System.Windows.Forms.DrawMode.Normal;