Returns the index of the menu item with the specified target and action.
Original signature is '- (NSInteger)indexOfItemWithTarget:(id)target andAction:(SEL)actionSelector'
Available in Mac OS X v10.0 and later.
Declaration Syntax
public virtual NSInteger IndexOfItemWithTargetAndAction(
Id target,
IntPtr actionSelector
)
Public Overridable Function IndexOfItemWithTargetAndAction ( _
target As Id, _
actionSelector As IntPtr _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithTargetAndAction(
Id^ target,
IntPtr actionSelector
)
Parameters
- target (Id)
- The target object associated with the menu item.
- actionSelector (IntPtr)
- The action method associated with the menu item.
Return Value
The index of the menu item, or -1 if no menu item contains the specified target and action.
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)