Export (0) Print
Expand All
Expand Minimize

PropertyGrid.SelectedObjects Property

Gets or sets the currently selected objects.

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

public Object[] SelectedObjects { get; set; }

Property Value

Type: System.Object[]
An array of type Object. The default is an empty array.


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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft