Version

FromKeyIButton Method

String indexer for the Toolbar items collection based on the Key property that returns instances of ITBarButton.
Syntax
'Declaration
 
Public Function FromKeyIButton( _
   ByVal key As String _
) As ITBarButton
public ITBarButton FromKeyIButton( 
   string key
)

Parameters

key
Remarks

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

When an item of the given key is found, a check is performed of whether it is of a type implementing ITBarButton. If the matching item is not of an expected type, null is returned.

It is the application developer's responsibility not to add buttons with the same Key value to the collection of toolbar items. For optimal performance and robustness, the avoidance of duplicate key use within the same UltraWebToolbar is strongly recommended.

If the web application places subclassed TBarButton instances into the UltraWebToolbar element, then it should uniformly use this indexer to access those items.

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