Skip to content

Commit

Permalink
Enable nullability in some PropertyGrid members (dotnet#10110)
Browse files Browse the repository at this point in the history
* Enable nullability in some PropertyGrid members

* Check if tabComponents is null
  • Loading branch information
gpetrou authored Jan 18, 2024
1 parent d5f0770 commit 14bc6e0
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 73 deletions.
60 changes: 30 additions & 30 deletions src/System.Windows.Forms/src/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ override System.Windows.Forms.PropertyGrid.BackgroundImage.set -> void
~override System.Windows.Forms.PropertyGrid.OnResize(System.EventArgs e) -> void
~override System.Windows.Forms.PropertyGrid.OnSystemColorsChanged(System.EventArgs e) -> void
~override System.Windows.Forms.PropertyGrid.OnVisibleChanged(System.EventArgs e) -> void
~override System.Windows.Forms.PropertyGrid.Site.get -> System.ComponentModel.ISite
~override System.Windows.Forms.PropertyGrid.Site.set -> void
~override System.Windows.Forms.PropertyGrid.Text.get -> string
~override System.Windows.Forms.PropertyGrid.Text.set -> void
override System.Windows.Forms.PropertyGrid.Site.get -> System.ComponentModel.ISite?
override System.Windows.Forms.PropertyGrid.Site.set -> void
override System.Windows.Forms.PropertyGrid.Text.get -> string!
override System.Windows.Forms.PropertyGrid.Text.set -> void
override System.Windows.Forms.TreeNode.ToString() -> string!
override System.Windows.Forms.TreeView.BackgroundImage.get -> System.Drawing.Image?
override System.Windows.Forms.TreeView.BackgroundImage.set -> void
Expand Down Expand Up @@ -570,16 +570,16 @@ System.Windows.Forms.PropertyGrid.BrowsableAttributes.set -> void
System.Windows.Forms.PropertyGrid.Controls.get -> System.Windows.Forms.Control.ControlCollection!
~System.Windows.Forms.PropertyGrid.OnComComponentNameChanged(System.ComponentModel.Design.ComponentRenameEventArgs e) -> void
~System.Windows.Forms.PropertyGrid.OnNotifyPropertyValueUIItemsChanged(object sender, System.EventArgs e) -> void
~System.Windows.Forms.PropertyGrid.PropertyTabs.get -> System.Windows.Forms.PropertyGrid.PropertyTabCollection
~System.Windows.Forms.PropertyGrid.SelectedGridItem.get -> System.Windows.Forms.GridItem
~System.Windows.Forms.PropertyGrid.SelectedGridItem.set -> void
~System.Windows.Forms.PropertyGrid.SelectedObject.get -> object
~System.Windows.Forms.PropertyGrid.SelectedObject.set -> void
~System.Windows.Forms.PropertyGrid.SelectedObjects.get -> object[]
~System.Windows.Forms.PropertyGrid.SelectedObjects.set -> void
~System.Windows.Forms.PropertyGrid.SelectedTab.get -> System.Windows.Forms.Design.PropertyTab
~System.Windows.Forms.PropertyGrid.ToolStripRenderer.get -> System.Windows.Forms.ToolStripRenderer
~System.Windows.Forms.PropertyGrid.ToolStripRenderer.set -> void
System.Windows.Forms.PropertyGrid.PropertyTabs.get -> System.Windows.Forms.PropertyGrid.PropertyTabCollection!
System.Windows.Forms.PropertyGrid.SelectedGridItem.get -> System.Windows.Forms.GridItem?
System.Windows.Forms.PropertyGrid.SelectedGridItem.set -> void
System.Windows.Forms.PropertyGrid.SelectedObject.get -> object?
System.Windows.Forms.PropertyGrid.SelectedObject.set -> void
System.Windows.Forms.PropertyGrid.SelectedObjects.get -> object![]!
System.Windows.Forms.PropertyGrid.SelectedObjects.set -> void
System.Windows.Forms.PropertyGrid.SelectedTab.get -> System.Windows.Forms.Design.PropertyTab!
System.Windows.Forms.PropertyGrid.ToolStripRenderer.get -> System.Windows.Forms.ToolStripRenderer?
System.Windows.Forms.PropertyGrid.ToolStripRenderer.set -> void
System.Windows.Forms.TreeNode.FirstNode.get -> System.Windows.Forms.TreeNode?
System.Windows.Forms.TreeNode.FullPath.get -> string!
System.Windows.Forms.TreeNode.ImageKey.get -> string!
Expand Down Expand Up @@ -9076,33 +9076,33 @@ System.Windows.Forms.PropertyGrid.DisabledItemForeColor.set -> void
System.Windows.Forms.PropertyGrid.DrawFlatToolbar.get -> bool
System.Windows.Forms.PropertyGrid.DrawFlatToolbar.set -> void
System.Windows.Forms.PropertyGrid.ExpandAllGridItems() -> void
System.Windows.Forms.PropertyGrid.ForeColorChanged -> System.EventHandler
System.Windows.Forms.PropertyGrid.ForeColorChanged -> System.EventHandler?
System.Windows.Forms.PropertyGrid.HelpBackColor.get -> System.Drawing.Color
System.Windows.Forms.PropertyGrid.HelpBackColor.set -> void
System.Windows.Forms.PropertyGrid.HelpBorderColor.get -> System.Drawing.Color
System.Windows.Forms.PropertyGrid.HelpBorderColor.set -> void
System.Windows.Forms.PropertyGrid.HelpForeColor.get -> System.Drawing.Color
System.Windows.Forms.PropertyGrid.HelpForeColor.set -> void
System.Windows.Forms.PropertyGrid.KeyDown -> System.Windows.Forms.KeyEventHandler
System.Windows.Forms.PropertyGrid.KeyPress -> System.Windows.Forms.KeyPressEventHandler
System.Windows.Forms.PropertyGrid.KeyUp -> System.Windows.Forms.KeyEventHandler
System.Windows.Forms.PropertyGrid.KeyDown -> System.Windows.Forms.KeyEventHandler?
System.Windows.Forms.PropertyGrid.KeyPress -> System.Windows.Forms.KeyPressEventHandler?
System.Windows.Forms.PropertyGrid.KeyUp -> System.Windows.Forms.KeyEventHandler?
System.Windows.Forms.PropertyGrid.LargeButtons.get -> bool
System.Windows.Forms.PropertyGrid.LargeButtons.set -> void
System.Windows.Forms.PropertyGrid.LineColor.get -> System.Drawing.Color
System.Windows.Forms.PropertyGrid.LineColor.set -> void
System.Windows.Forms.PropertyGrid.MouseDown -> System.Windows.Forms.MouseEventHandler
System.Windows.Forms.PropertyGrid.MouseEnter -> System.EventHandler
System.Windows.Forms.PropertyGrid.MouseLeave -> System.EventHandler
System.Windows.Forms.PropertyGrid.MouseMove -> System.Windows.Forms.MouseEventHandler
System.Windows.Forms.PropertyGrid.MouseUp -> System.Windows.Forms.MouseEventHandler
System.Windows.Forms.PropertyGrid.MouseDown -> System.Windows.Forms.MouseEventHandler?
System.Windows.Forms.PropertyGrid.MouseEnter -> System.EventHandler?
System.Windows.Forms.PropertyGrid.MouseLeave -> System.EventHandler?
System.Windows.Forms.PropertyGrid.MouseMove -> System.Windows.Forms.MouseEventHandler?
System.Windows.Forms.PropertyGrid.MouseUp -> System.Windows.Forms.MouseEventHandler?
System.Windows.Forms.PropertyGrid.Padding.get -> System.Windows.Forms.Padding
System.Windows.Forms.PropertyGrid.Padding.set -> void
System.Windows.Forms.PropertyGrid.PaddingChanged -> System.EventHandler
System.Windows.Forms.PropertyGrid.PaddingChanged -> System.EventHandler?
System.Windows.Forms.PropertyGrid.PropertyGrid() -> void
System.Windows.Forms.PropertyGrid.PropertySort.get -> System.Windows.Forms.PropertySort
System.Windows.Forms.PropertyGrid.PropertySort.set -> void
System.Windows.Forms.PropertyGrid.PropertySortChanged -> System.EventHandler
System.Windows.Forms.PropertyGrid.PropertyTabChanged -> System.Windows.Forms.PropertyTabChangedEventHandler
System.Windows.Forms.PropertyGrid.PropertySortChanged -> System.EventHandler?
System.Windows.Forms.PropertyGrid.PropertyTabChanged -> System.Windows.Forms.PropertyTabChangedEventHandler?
System.Windows.Forms.PropertyGrid.PropertyTabCollection
System.Windows.Forms.PropertyGrid.PropertyTabCollection.AddTabType(System.Type! propertyTabType) -> void
System.Windows.Forms.PropertyGrid.PropertyTabCollection.AddTabType(System.Type! propertyTabType, System.ComponentModel.PropertyTabScope tabScope) -> void
Expand All @@ -9111,17 +9111,17 @@ System.Windows.Forms.PropertyGrid.PropertyTabCollection.Count.get -> int
System.Windows.Forms.PropertyGrid.PropertyTabCollection.GetEnumerator() -> System.Collections.IEnumerator!
System.Windows.Forms.PropertyGrid.PropertyTabCollection.RemoveTabType(System.Type! propertyTabType) -> void
System.Windows.Forms.PropertyGrid.PropertyTabCollection.this[int index].get -> System.Windows.Forms.Design.PropertyTab!
System.Windows.Forms.PropertyGrid.PropertyValueChanged -> System.Windows.Forms.PropertyValueChangedEventHandler
System.Windows.Forms.PropertyGrid.PropertyValueChanged -> System.Windows.Forms.PropertyValueChangedEventHandler?
System.Windows.Forms.PropertyGrid.RefreshTabs(System.ComponentModel.PropertyTabScope tabScope) -> void
System.Windows.Forms.PropertyGrid.ResetSelectedProperty() -> void
System.Windows.Forms.PropertyGrid.SelectedGridItemChanged -> System.Windows.Forms.SelectedGridItemChangedEventHandler
System.Windows.Forms.PropertyGrid.SelectedGridItemChanged -> System.Windows.Forms.SelectedGridItemChangedEventHandler?
System.Windows.Forms.PropertyGrid.SelectedItemWithFocusBackColor.get -> System.Drawing.Color
System.Windows.Forms.PropertyGrid.SelectedItemWithFocusBackColor.set -> void
System.Windows.Forms.PropertyGrid.SelectedItemWithFocusForeColor.get -> System.Drawing.Color
System.Windows.Forms.PropertyGrid.SelectedItemWithFocusForeColor.set -> void
System.Windows.Forms.PropertyGrid.SelectedObjectsChanged -> System.EventHandler
System.Windows.Forms.PropertyGrid.SelectedObjectsChanged -> System.EventHandler?
System.Windows.Forms.PropertyGrid.ShowEventsButton(bool value) -> void
System.Windows.Forms.PropertyGrid.TextChanged -> System.EventHandler
System.Windows.Forms.PropertyGrid.TextChanged -> System.EventHandler?
System.Windows.Forms.PropertyGrid.UseCompatibleTextRendering.get -> bool
System.Windows.Forms.PropertyGrid.UseCompatibleTextRendering.set -> void
System.Windows.Forms.PropertyGrid.ViewBackColor.get -> System.Drawing.Color
Expand Down
Loading

0 comments on commit 14bc6e0

Please sign in to comment.