Version

GetItemIdentifier Method

Gets a unique identifier for the menu item. The unique identifier will be the item's header if it has one. If not, the identifier is the item's visible index in the collection at that level. If duplicate items exist having the same header value, the identifier is again the item's visible index in the collection at that level.
Syntax
'Declaration
 
Protected Function GetItemIdentifier( _
   ByVal oItemsCollection As System.Object, _
   ByVal menuItem As Infragistics.Controls.Menus.XamMenuItem _
) As System.Object
protected System.object GetItemIdentifier( 
   System.object oItemsCollection,
   Infragistics.Controls.Menus.XamMenuItem menuItem
)
protected: System.Object* GetItemIdentifier( 
   System.Object* oItemsCollection,
   Infragistics.Controls.Menus.XamMenuItem* menuItem
) 

Parameters

oItemsCollection
Collection of items which can be either ItemCollection or UIElementCollection
menuItem
Menu item whose unique identifier needs to be determined

Return Value

Returns a unique identifier of the menu item
Requirements

Target Platforms: 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