Version

FindPropertyItem Method

Returns the PropertyGridPropertyItem that represents the property with the specified name on the specified source object.
Syntax
'Declaration
 
Public Function FindPropertyItem( _
   ByVal sourceObject As Object, _
   ByVal propertyName As String _
) As PropertyGridPropertyItem
public PropertyGridPropertyItem FindPropertyItem( 
   object sourceObject,
   string propertyName
)

Parameters

sourceObject
The source object instance that contains the property to be found.
propertyName
The name of the property to be found.

Return Value

The PropertyGridPropertyItem that represents the property with the specified name on the specified source object.
Remarks
Note: PropertyGridPropertyItems that are currently filtered out or that represent a property on an expandable object that is currently collapsed will NOT be found and returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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