Version

FromKey Method (Items)

String indexer for the Toolbar items collection based on the Key property that returns generic Toolbar Items.
Syntax
'Declaration
 
Public Function FromKey( _
   ByVal key As String _
) As Object
public object FromKey( 
   string key
)

Parameters

key
Remarks

The first Toolbar item encountered matching key is returned. As button groups are encountered within the collection, if the button group's Key is not a match, then the buttons contained by that button group are checked next, before ensuing items present in this collection.

The comparison of the keys are performed in a case-sensitive manner.

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