'DeclarationPublic ReadOnly Property SelectedObjects As IList
'UsageDim instance As PropertyGrid Dim value As IList value = instance.SelectedObjects
public IList SelectedObjects {get;}
'DeclarationPublic ReadOnly Property SelectedObjects As IList
'UsageDim instance As PropertyGrid Dim value As IList value = instance.SelectedObjects
public IList SelectedObjects {get;}
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.
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.