64 writes to SelectedObject
Accessibility_Core_App (2)
RemainingControls.cs (2)
36propertyGrid1.SelectedObject = domainUpDown1; 37propertyGrid2.SelectedObject = trackBar1;
DesignSurface (2)
MainForm.cs (2)
70propertyGrid.SelectedObject = selectionService.PrimarySelection; 439SelectedObject = isurf.GetIDesignerHost().RootComponent
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1086_propertyGrid.SelectedObject = null;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
77_cellStyleProperties.SelectedObject = _cellStyle;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (5)
165_propertyGrid1.SelectedObject = _selectedColumns.SelectedItem; 810_propertyGrid1.SelectedObject = _selectedColumns.SelectedItem; 839_propertyGrid1.SelectedObject = _selectedColumns.SelectedItem; 1063_propertyGrid1.SelectedObject = _selectedColumns.SelectedItem; 1152_propertyGrid1.SelectedObject = _selectedColumns.SelectedItem;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
497_propertyGrid1.SelectedObject = node;
System.Windows.Forms.Interop.Tests (4)
PropertyGridTests.cs (4)
23propertyGrid.SelectedObject = target; 42propertyGrid.SelectedObject = null; 57propertyGrid.SelectedObject = target; 73propertyGrid.SelectedObject = null;
System.Windows.Forms.Tests (32)
System\Windows\Forms\AccessibleObjects\CategoryGridEntryAccessibleObjectTests.cs (6)
68control.SelectedObject = button; 83control.SelectedObject = button; 101control.SelectedObject = button; 118control.SelectedObject = button; 136control.SelectedObject = button; 178control.SelectedObject = button;
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (3)
31propertyGrid.SelectedObject = comboBox; 46propertyGrid.SelectedObject = comboBox; 169propertyGrid.SelectedObject = component;
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (8)
52propertyGrid.SelectedObject = comboBox; 67propertyGrid.SelectedObject = comboBox; 86propertyGrid.SelectedObject = comboBox; 113propertyGrid.SelectedObject = comboBox; 129propertyGrid.SelectedObject = comboBox; 167propertyGrid.SelectedObject = comboBox; 195propertyGrid.SelectedObject = comboBox; 239propertyGrid.SelectedObject = comboBox;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (1)
85control.SelectedObject = button;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
67propertyGrid.SelectedObject = testEntity;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (3)
24SelectedObject = testEntity 50SelectedObject = Point.Empty 191using PropertyGrid propertyGrid = new() { SelectedObject = new TestEntityWithTextField() { TextProperty = "Test" } };
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
16SelectedObject = Size.Empty
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (1)
18SelectedObject = pt,
System\Windows\Forms\PropertyGridTests.cs (8)
2566SelectedObject = value 2573control.SelectedObject = value; 2592control.SelectedObject = value; 2601control.SelectedObject = value; 3915propertyGrid.SelectedObject = button; 3929propertyGrid.SelectedObject = @object; 3969propertyGrid.SelectedObject = myClass; 4056propertyGrid.SelectedObject = testObject;
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
41public SubPropertyGrid() => SelectedObject = new TSelected();
System.Windows.Forms.UI.IntegrationTests (6)
PropertyGridTests.cs (5)
24_propertyGrid.SelectedObject = _form; 288_propertyGrid.SelectedObject = textBox1; 291_propertyGrid.SelectedObject = null; 408_propertyGrid.SelectedObject = textBox; 491_propertyGrid.SelectedObject = _propertyGrid;
PropertyGridViewTests.cs (1)
25propertyGrid.SelectedObject = domainUpDown;
WinFormsControlsTest (9)
CollectionEditors.cs (1)
41propertyGrid1.SelectedObject = sender;
Dialogs.cs (6)
85propertyGrid1.SelectedObject = null; 97propertyGrid1.SelectedObject = openFileDialog1; 103propertyGrid1.SelectedObject = saveFileDialog1; 109propertyGrid1.SelectedObject = folderBrowserDialog1; 115propertyGrid1.SelectedObject = printDialog1; 121propertyGrid1.SelectedObject = null;
MessageBoxes.cs (1)
45propertyGrid1.SelectedObject = _messgageBoxProxy;
PropertyGrid.cs (1)
12propertyGrid1.SelectedObject = selectedObject;
22 references to SelectedObject
System.Windows.Forms.Tests (11)
System\Windows\Forms\PropertyGridTests.cs (11)
142Assert.Null(control.SelectedObject); 2568Assert.Equal(expected, control.SelectedObject); 2574Assert.Equal(expected, control.SelectedObject); 2593Assert.Equal(expected, control.SelectedObject); 2602Assert.Equal(expected, control.SelectedObject); 2632Assert.Equal(expectedSelectedObject, control.SelectedObject); 2640Assert.Equal(expectedSelectedObject, control.SelectedObject); 2657Assert.Equal(expectedSelectedObject, control.SelectedObject); 2665Assert.Equal(expectedSelectedObject, control.SelectedObject); 2686Assert.Equal(expectedSelectedObject, control.SelectedObject); 2697Assert.Equal(expectedSelectedObject, control.SelectedObject);
System.Windows.Forms.TestUtilities (2)
PropertyGridInternal\SubPropertyGrid.cs (2)
32string categoryName = SelectedObject!.GetType().GetProperty(propertyName)! 84object? selectedObject = SelectedObject;
System.Windows.Forms.UI.IntegrationTests (3)
PropertyGridTests.cs (3)
285_propertyGrid.SelectedObject.Should().Be(_form); 289_propertyGrid.SelectedObject.Should().Be(textBox1); 292_propertyGrid.SelectedObject.Should().BeNull();
WinFormsControlsTest (6)
Dialogs.cs (5)
35if (propertyGrid1.SelectedObject is OpenFileDialog openFileDialog) 42if (propertyGrid1.SelectedObject is CommonDialog dialog) 48if (propertyGrid1.SelectedObject is Form form) 62if (propertyGrid1.SelectedObject is IDisposable disposable) 129_btnOpen.Enabled = propertyGrid1.SelectedObject is not null;
MessageBoxes.cs (1)
64_btnOpen.Enabled = propertyGrid1.SelectedObject is not null;