1 write to _propertyGrid
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
21_propertyGrid = new();
150 references to _propertyGrid
System.Windows.Forms.UI.IntegrationTests (150)
PropertyGridTests.cs (150)
22_form = new() { Controls = { _propertyGrid } }; 23_propertyGrid.CreateControl(); 24_propertyGrid.SelectedObject = _form; 31_propertyGrid.Dispose(); 37_propertyGrid.Focused.Should().BeFalse(); 43_propertyGrid.ToolbarVisible.Should().BeTrue(); 45_propertyGrid.ToolbarVisible = false; 46_propertyGrid.ToolbarVisible.Should().BeFalse(); 52_propertyGrid.HelpVisible.Should().BeTrue(); 54_propertyGrid.HelpVisible = false; 55_propertyGrid.HelpVisible.Should().BeFalse(); 61_propertyGrid.CommandsVisibleIfAvailable.Should().BeTrue(); 63_propertyGrid.CommandsVisibleIfAvailable = false; 64_propertyGrid.CommandsVisibleIfAvailable.Should().BeFalse(); 70_propertyGrid.CommandsVisible.Should().BeFalse(); 76_propertyGrid.CanShowCommands.Should().BeFalse(); 82_propertyGrid.CanShowVisualStyleGlyphs.Should().BeTrue(); 84_propertyGrid.CanShowVisualStyleGlyphs = false; 85_propertyGrid.CanShowVisualStyleGlyphs.Should().BeFalse(); 91_propertyGrid.AutoScroll.Should().BeFalse(); 93_propertyGrid.AutoScroll = true; 94_propertyGrid.AutoScroll.Should().BeTrue(); 100Action act = () => _propertyGrid.Refresh(); 107_propertyGrid.CommandsBorderColor.Should().Be(SystemColors.ControlDark); 109_propertyGrid.CommandsBorderColor = Color.Red; 110_propertyGrid.CommandsBorderColor.Should().Be(Color.Red); 116_propertyGrid.HelpBorderColor.Should().Be(SystemColors.ControlDark); 118_propertyGrid.HelpBorderColor = Color.Blue; 119_propertyGrid.HelpBorderColor.Should().Be(Color.Blue); 125_propertyGrid.SelectedItemWithFocusBackColor.Should().Be(SystemColors.Highlight); 127_propertyGrid.SelectedItemWithFocusBackColor = Color.Green; 128_propertyGrid.SelectedItemWithFocusBackColor.Should().Be(Color.Green); 134_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(SystemColors.HighlightText); 136_propertyGrid.SelectedItemWithFocusForeColor = Color.Red; 137_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(Color.Red); 143_propertyGrid.DisabledItemForeColor.Should().Be(SystemColors.GrayText); 145_propertyGrid.DisabledItemForeColor = Color.Blue; 146_propertyGrid.DisabledItemForeColor.Should().Be(Color.Blue); 152_propertyGrid.CategorySplitterColor.Should().Be(SystemColors.Control); 154_propertyGrid.CategorySplitterColor = Color.Green; 155_propertyGrid.CategorySplitterColor.Should().Be(Color.Green); 161_propertyGrid.ForeColor.Should().Be(SystemColors.ControlText); 163_propertyGrid.ForeColor = Color.Red; 164_propertyGrid.ForeColor.Should().Be(Color.Red); 170_propertyGrid.BackgroundImageLayout.Should().Be(ImageLayout.Tile); 172_propertyGrid.BackgroundImageLayout = ImageLayout.Center; 173_propertyGrid.BackgroundImageLayout.Should().Be(ImageLayout.Center); 179_propertyGrid.BackgroundImage.Should().BeNull(); 182_propertyGrid.BackgroundImage = newImage; 183_propertyGrid.BackgroundImage.Should().Be(newImage); 189_propertyGrid.BackColor.Should().Be(SystemColors.Control); 191_propertyGrid.BackColor = Color.Blue; 192_propertyGrid.BackColor.Should().Be(Color.Blue); 198_propertyGrid.BrowsableAttributes[0].Should().Be(BrowsableAttribute.Default); 201_propertyGrid.BrowsableAttributes = newAttributes; 202_propertyGrid.BrowsableAttributes.Contains(newAttributes[0]).Should().BeTrue(); 208_propertyGrid.CommandsBackColor.Should().Be(SystemColors.Control); 210_propertyGrid.CommandsBackColor = Color.Green; 211_propertyGrid.CommandsBackColor.Should().Be(Color.Green); 217_propertyGrid.CommandsForeColor.Should().Be(SystemColors.ControlText); 219_propertyGrid.CommandsForeColor = Color.Red; 220_propertyGrid.CommandsForeColor.Should().Be(Color.Red); 226_propertyGrid.ContextMenuDefaultLocation.Should().NotBeNull(); 228Point oldLocation = _propertyGrid.ContextMenuDefaultLocation; 231_propertyGrid.Location = newLocation; 232_propertyGrid.ContextMenuDefaultLocation.X.Should().Be(oldLocation.X + newLocation.X); 233_propertyGrid.ContextMenuDefaultLocation.Y.Should().Be(oldLocation.Y + newLocation.Y); 239_propertyGrid.Controls.Should().NotBeNull(); 242_propertyGrid.Controls.Add(textBox); 243_propertyGrid.Controls.Contains(textBox).Should().BeTrue(); 249_propertyGrid.HelpBackColor.Should().Be(SystemColors.Control); 251_propertyGrid.HelpBackColor = Color.Blue; 252_propertyGrid.HelpBackColor.Should().Be(Color.Blue); 258_propertyGrid.HelpForeColor.Should().Be(SystemColors.ControlText); 260_propertyGrid.HelpForeColor = Color.Green; 261_propertyGrid.HelpForeColor.Should().Be(Color.Green); 267_propertyGrid.LineColor.Should().Be(SystemColors.InactiveBorder); 269_propertyGrid.LineColor = Color.Red; 270_propertyGrid.LineColor.Should().Be(Color.Red); 276_propertyGrid.PropertySort.Should().Be(PropertySort.CategorizedAlphabetical); 278_propertyGrid.PropertySort = PropertySort.Alphabetical; 279_propertyGrid.PropertySort.Should().Be(PropertySort.Alphabetical); 285_propertyGrid.SelectedObject.Should().Be(_form); 288_propertyGrid.SelectedObject = textBox1; 289_propertyGrid.SelectedObject.Should().Be(textBox1); 291_propertyGrid.SelectedObject = null; 292_propertyGrid.SelectedObject.Should().BeNull(); 298_propertyGrid.SelectedObjects.Should().Contain(_form); 305_propertyGrid.SelectedObjects = objects; 306_propertyGrid.SelectedObjects.Should().Contain(objects); 308_propertyGrid.SelectedObjects = []; 309_propertyGrid.SelectedObjects.Should().BeEmpty(); 316Action act = () => _propertyGrid.SelectedObjects = objects; 323_propertyGrid.SelectedTab.Should().NotBeNull(); 329_propertyGrid.LargeButtons.Should().BeFalse(); 331_propertyGrid.LargeButtons = true; 332_propertyGrid.LargeButtons.Should().BeTrue(); 338_propertyGrid.ViewBackColor.Should().Be(SystemColors.Window); 340_propertyGrid.ViewBackColor = Color.Red; 341_propertyGrid.ViewBackColor.Should().Be(Color.Red); 347_propertyGrid.ViewBorderColor.Should().Be(SystemColors.ControlDark); 349_propertyGrid.ViewBorderColor = Color.Blue; 350_propertyGrid.ViewBorderColor.Should().Be(Color.Blue); 356_propertyGrid.ViewForeColor.Should().Be(SystemColors.WindowText); 358_propertyGrid.ViewForeColor = Color.Green; 359_propertyGrid.ViewForeColor.Should().Be(Color.Green); 365_propertyGrid.CategoryForeColor.Should().Be(SystemColors.ControlText); 367_propertyGrid.CategoryForeColor = SystemColors.MenuHighlight; 368_propertyGrid.CategoryForeColor.Should().Be(SystemColors.MenuHighlight); 374_propertyGrid.CommandsLinkColor.A.Should().Be(255); 375_propertyGrid.CommandsLinkColor.R.Should().Be(0); 376_propertyGrid.CommandsLinkColor.G.Should().Be(0); 377_propertyGrid.CommandsLinkColor.B.Should().Be(255); 379_propertyGrid.CommandsLinkColor = Color.Silver; 380_propertyGrid.CommandsLinkColor.Should().Be(Color.Silver); 386_propertyGrid.CommandsActiveLinkColor.Should().Be(Color.Red); 388_propertyGrid.CommandsActiveLinkColor = SystemColors.ControlDark; 389_propertyGrid.CommandsActiveLinkColor.Should().Be(SystemColors.ControlDark); 395_propertyGrid.CommandsDisabledLinkColor.A.Should().Be(255); 396_propertyGrid.CommandsDisabledLinkColor.R.Should().Be(133); 397_propertyGrid.CommandsDisabledLinkColor.G.Should().Be(133); 398_propertyGrid.CommandsDisabledLinkColor.B.Should().Be(133); 400_propertyGrid.CommandsDisabledLinkColor = Color.Orange; 401_propertyGrid.CommandsDisabledLinkColor.Should().Be(Color.Orange); 408_propertyGrid.SelectedObject = textBox; 418_propertyGrid.ResetSelectedProperty(); 425HScrollProperties horizontalScroll = _propertyGrid.HorizontalScroll; 432VScrollProperties verticalScroll = _propertyGrid.VerticalScroll; 439_propertyGrid.UseCompatibleTextRendering.Should().BeTrue(); 441_propertyGrid.UseCompatibleTextRendering = false; 442_propertyGrid.UseCompatibleTextRendering.Should().BeFalse(); 444_propertyGrid.UseCompatibleTextRendering = true; 445_propertyGrid.UseCompatibleTextRendering.Should().BeTrue(); 451_propertyGrid.Site.Should().BeNull(); 454_propertyGrid.Site = mockSite.Object; 455_propertyGrid.Site.Should().Be(mockSite.Object); 461_propertyGrid.PropertyTabs.Should().NotBeNull(); 463PropertyTabCollection propertyTabCollection = _propertyGrid.PropertyTabs; 465propertyGrid.Should().Be(_propertyGrid); 471PropertyTabCollection initialTabs = _propertyGrid.PropertyTabs; 474_propertyGrid.RefreshTabs(PropertyTabScope.Component); 475PropertyTabCollection refreshedTabs = _propertyGrid.PropertyTabs; 488_propertyGrid.SelectedGridItem.Should().NotBeNull(); 489_propertyGrid.SelectedGridItem!.Label.Should().Be("Text"); 491_propertyGrid.SelectedObject = _propertyGrid; 492_propertyGrid.SelectedGridItem.Label.Should().Be("Accessibility"); 494GridItem gridItem = _propertyGrid.SelectedGridItem.GridItems[0]; 495_propertyGrid.SelectedGridItem = gridItem; 496_propertyGrid.SelectedGridItem.Should().Be(gridItem);