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