PropertyGrid.SelectedObject Property

Definition

Gets or sets the object for which the grid displays properties.

public:
 property System::Object ^ SelectedObject { System::Object ^ get(); void set(System::Object ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.PropertyGrid/SelectedObjectConverter))]
public object SelectedObject { get; set; }
member this.SelectedObject : obj with get, set
Public Property SelectedObject As Object

Property Value

The first object in the object list. If there is no currently selected object the return is null.

Attributes

Remarks

The SelectedObject property sets a single object into the grid to be browsed. If multiple objects are being browsed, this property returns the first one in the list. If no objects are selected, null is returned.

Applies to