MonobjcMonobjc Documented Class Library
IndexOfItemWithTag Method (tag)
NamespacesMonobjc.AppKitNSPopUpButtonIndexOfItemWithTag(NSInteger)

Returns the index of the menu item with the specified tag.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IndexOfItemWithTag(
	NSInteger tag
)
Public Overridable Function IndexOfItemWithTag ( _
	tag As NSInteger _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithTag(
	NSInteger tag
)
Parameters
tag (NSInteger)
The tag of the menu item you want.
Return Value
The index of the item or -1 if no item with the specified tag was found.
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)