Version

GetByType Method

Returns the first BaseToolItem with a Type property that matches the passed value.
Syntax
'Declaration
 
Public Function GetByType( _
   ByVal type As ToolbarItemType _
) As BaseToolbarItem
public BaseToolbarItem GetByType( 
   ToolbarItemType type
)

Parameters

type
The ToolbarItemType to check against the Type property of each BaseToolbarItem.

Return Value

If type matches the Type property of a BaseToolbarItem in the collection, this BaseToolbarItem is returned; null otherwise.
Remarks

This method enables easy retrieval of a BaseToolbarItem based on the Type property of the control.

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