Version

FindByKeyOrType Method (BaseChildControl)

Find item by Key, Type or action.
Syntax
'Declaration
 
Public Overridable Function FindByKeyOrType( _
   ByVal action As ActionType, _
   ByVal key As String _
) As BaseChildControl
public virtual BaseChildControl FindByKeyOrType( 
   ActionType action,
   string key
)

Parameters

action
The value of Act properties of an item to search for. Note: any appropriate Type such as ToolbarButtonType, ToolbarMenuButtonType, etc. with typecast to ActionType can be used.
key
The value of Key

Return Value

Reference to this or null.
Requirements

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