Xceed Toolkit Plus for WPF v4.6 Documentation
SelectedObjects Property


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit.PropertyGrid Namespace > PropertyGrid Class : SelectedObjects Property
Gets the currently selected objects the PropertyGrid is inspecting,
Syntax
'Declaration
 
Public ReadOnly Property SelectedObjects As IList
'Usage
 
Dim instance As PropertyGrid
Dim value As IList
 
value = instance.SelectedObjects
public IList SelectedObjects {get;}

Property Value

A list of the currently selected objects the PropertyGrid is inspecting,
Remarks

If you need to assign a list of objects in XAML or code behind, use SelectedObjectsOverride.

If both SelectedObjects and SelectedObject are defined, SelectedObjects is used.

The following describes the PropertyGrid's behavior:

- If the properties have different values, an empty value will be displayed.
- If the ReadOnlyAttribute of the properties is different, read-only will be used.
- If the DefaultPropertyAttribute of the objects is different, there will be no SelectedPropertyItem.
- If the EditorAttribute or ItemsSourceAttribute of the properties are different, there will be no special editor.
- If the PropertyOrderAttribute of the properties is different, PropertyOrder will be int.MaxValue.
- If the DescriptionAttribute of the properties, there will be no descriptions.
- If the CategoryOrderAttribute of the properties is different, CategoryOrder will be int.MaxValue.
- If the DisplayNameAttribute of the properties is different, the first object's name will be used.
- If the CategoryAttribute of the properties is different, the "Misc" category will be used.
- If the BrowsableAttribute of the properties is different, the property will not be displayed.
- If the ExpandObjectAttributeof the properties is different, nothing is done.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PropertyGrid Class
PropertyGrid Members