MonobjcMonobjc Documented Class Library
IndexOfItemWithTag Method (aTag)
NamespacesMonobjc.AppKitNSMenuIndexOfItemWithTag(NSInteger)

Returns the index of the first menu item in the receiver identified by a tag.

Original signature is '- (NSInteger)indexOfItemWithTag:(NSInteger)aTag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IndexOfItemWithTag(
	NSInteger aTag
)
Public Overridable Function IndexOfItemWithTag ( _
	aTag As NSInteger _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithTag(
	NSInteger aTag
)
Parameters
aTag (NSInteger)
An integer tag associated with the menu item of the receiver.
Return Value
The integer index of the menu item or, if no such menu item is in the menu, –1.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)