PropertyGrid.SelectedObjects Property

 

Gets or sets the currently selected objects.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public object[] SelectedObjects { get; set; }

Property Value

Type: System.Object[]

An array of type Object. The default is an empty array.

Exception Condition
ArgumentException

One of the items in the array of objects had a null value.

The PropertyGrid only displays the properties that are common to all the objects that are in the array. Assigning an array to the SelectedObjects replaces the reference to any SelectedObject you might make.

.NET Framework
Available since 1.1
Return to top
Show: