48 references to DrawMode
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
150_listBoxSummary.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
System.Windows.Forms (40)
_generated\1\Validation.cs (2)
135public static void Validate(System.Windows.Forms.DrawMode enumToValidate, string parameterName = "value") 139ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.DrawMode));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (15)
366case DrawMode.OwnerDrawFixed: 369case DrawMode.OwnerDrawVariable: 410[DefaultValue(DrawMode.Normal)] 413public DrawMode DrawMode 415get => Properties.GetValueOrDefault(s_propDrawMode, DrawMode.Normal); 423Properties.AddOrRemoveValue(s_propDrawMode, value, defaultValue: DrawMode.Normal); 584DrawMode drawMode = DrawMode; 585if (drawMode == DrawMode.OwnerDrawFixed || 586drawMode == DrawMode.OwnerDrawVariable || 607if (DrawMode != DrawMode.Normal) 832if (DrawMode != DrawMode.Normal) 1955if (DrawMode != DrawMode.OwnerDrawVariable) 3371if (DrawMode == DrawMode.OwnerDrawFixed) 3376else if (DrawMode == DrawMode.OwnerDrawVariable) 3591if (DrawMode == DrawMode.OwnerDrawVariable && itemID >= 0)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
132public override DrawMode DrawMode 136return DrawMode.Normal;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (20)
67private DrawMode _drawMode = DrawMode.Normal; 324case DrawMode.Normal: 326case DrawMode.OwnerDrawFixed: 329case DrawMode.OwnerDrawVariable: 388[DefaultValue(DrawMode.Normal)] 391public virtual DrawMode DrawMode 404if (MultiColumn && value == DrawMode.OwnerDrawVariable) 411if (_drawMode == DrawMode.OwnerDrawVariable) 577if (_drawMode is DrawMode.OwnerDrawFixed or DrawMode.OwnerDrawVariable) 593if (_drawMode == DrawMode.OwnerDrawFixed && IsHandleCreated) 653if (DrawMode != DrawMode.Normal) 688if (value && _drawMode == DrawMode.OwnerDrawVariable) 712if (_drawMode == DrawMode.OwnerDrawVariable) 1416if (_drawMode != DrawMode.OwnerDrawVariable) 1752if (_drawMode == DrawMode.OwnerDrawFixed) 1947if (_drawMode == DrawMode.OwnerDrawVariable) 2165return ItemHeight != DefaultListBoxItemHeight && _drawMode != DrawMode.Normal; 2377if (_drawMode == DrawMode.OwnerDrawVariable && mis->itemID >= 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
339DrawMode = DrawMode.OwnerDrawFixed
System.Windows.Forms.Design (7)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
445_listBox.DrawMode = DrawMode.OwnerDrawFixed;
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
180DrawMode = DrawMode.OwnerDrawFixed, 194DrawMode = DrawMode.OwnerDrawFixed,
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
26DrawMode = DrawMode.OwnerDrawFixed;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
520_selectedColumns.DrawMode = DrawMode.OwnerDrawFixed;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
253_newItemTypes.DrawMode = DrawMode.OwnerDrawVariable; 285_listBoxItems.DrawMode = DrawMode.OwnerDrawVariable;