PropertyGrid.SelectedObjects Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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.

Exception Condition

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