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