53 references to OwnerDrawVariable
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
150
_listBoxSummary.DrawMode = System.Windows.Forms.DrawMode.
OwnerDrawVariable
;
System.Windows.Forms (14)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
364
case DrawMode.
OwnerDrawVariable
:
581
drawMode == DrawMode.
OwnerDrawVariable
||
1956
if (DrawMode != DrawMode.
OwnerDrawVariable
)
3391
else if (DrawMode == DrawMode.
OwnerDrawVariable
)
3606
if (DrawMode == DrawMode.
OwnerDrawVariable
&& itemID >= 0)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (9)
331
case DrawMode.
OwnerDrawVariable
:
406
if (MultiColumn && value == DrawMode.
OwnerDrawVariable
)
413
if (_drawMode == DrawMode.
OwnerDrawVariable
)
579
if (_drawMode is DrawMode.OwnerDrawFixed or DrawMode.
OwnerDrawVariable
)
690
if (value && _drawMode == DrawMode.
OwnerDrawVariable
)
714
if (_drawMode == DrawMode.
OwnerDrawVariable
)
1418
if (_drawMode != DrawMode.
OwnerDrawVariable
)
1949
if (_drawMode == DrawMode.
OwnerDrawVariable
)
2379
if (_drawMode == DrawMode.
OwnerDrawVariable
&& mis->itemID >= 0)
System.Windows.Forms.Tests (31)
CheckedListBoxTests.cs (1)
87
box.DrawMode = DrawMode.
OwnerDrawVariable
;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
477
DrawMode = DrawMode.
OwnerDrawVariable
;
System\Windows\Forms\ComboBoxTests.cs (4)
2617
[InlineData(DrawMode.
OwnerDrawVariable
)]
2650
using ComboBox control = CreateComboBox(DrawMode.
OwnerDrawVariable
);
2672
control.DrawMode = DrawMode.
OwnerDrawVariable
;
2757
DrawMode = DrawMode.
OwnerDrawVariable
;
System\Windows\Forms\ListBoxTests.cs (25)
323
[InlineData(DrawMode.
OwnerDrawVariable
, 0x562100E1)]
880
yield return new object[] { autoSize, false, DrawMode.
OwnerDrawVariable
};
920
yield return new object[] { true, false, DrawMode.
OwnerDrawVariable
, 1 };
921
yield return new object[] { false, false, DrawMode.
OwnerDrawVariable
, 0 };
981
yield return new object[] { autoSize, false, DrawMode.
OwnerDrawVariable
, 1 };
1037
Assert.Throws<ArgumentException>("value", () => control.DrawMode = DrawMode.
OwnerDrawVariable
);
1747
yield return new object[] { DrawMode.
OwnerDrawVariable
, integralHeight, 1, 0 };
1748
yield return new object[] { DrawMode.
OwnerDrawVariable
, integralHeight, Control.DefaultFont.Height, 0 };
1749
yield return new object[] { DrawMode.
OwnerDrawVariable
, integralHeight, 255, 0 };
1791
[InlineData(DrawMode.
OwnerDrawVariable
, false)]
1956
DrawMode = DrawMode.
OwnerDrawVariable
2059
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.Fixed3D, extra };
2060
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.FixedSingle, extra };
2061
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.None, 0 };
2088
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.Fixed3D, (Control.DefaultFont.Height * 2) + extra };
2089
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.FixedSingle, (Control.DefaultFont.Height * 2) + extra };
2090
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.None, (Control.DefaultFont.Height * 2) };
2118
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.Fixed3D };
2119
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.FixedSingle };
2120
yield return new object[] { DrawMode.
OwnerDrawVariable
, BorderStyle.None };
5179
[InlineData(DrawMode.
OwnerDrawVariable
)]
5234
yield return new object[] { DrawMode.
OwnerDrawVariable
, 0, 0, 0, 0 };
5235
yield return new object[] { DrawMode.
OwnerDrawVariable
, 1, 1, -2, -2 };
5236
yield return new object[] { DrawMode.
OwnerDrawVariable
, 0, 0, 10, 10 };
6283
[InlineData(DrawMode.
OwnerDrawVariable
, true)]
WinFormsControlsTest (7)
ComboBoxesWithScrollBars.cs (6)
41
useDifferentHeightsCheckBox1.Checked = comboBox1.DrawMode == DrawMode.
OwnerDrawVariable
;
42
useDifferentHeightsCheckBox2.Checked = comboBox2.DrawMode == DrawMode.
OwnerDrawVariable
;
43
useDifferentHeightsCheckBox3.Checked = comboBox3.DrawMode == DrawMode.
OwnerDrawVariable
;
79
comboBox1.DrawMode = DrawMode.
OwnerDrawVariable
;
95
comboBox2.DrawMode = DrawMode.
OwnerDrawVariable
;
112
comboBox3.DrawMode = DrawMode.
OwnerDrawVariable
;
ListBoxes.Designer.cs (1)
172
this.listBox4.DrawMode = System.Windows.Forms.DrawMode.
OwnerDrawVariable
;