MonobjcMonobjc Documented Class Library
ItemWithTag Method (aTag)
NamespacesMonobjc.AppKitNSMenuItemWithTag(NSInteger)

Returns the first menu item in the receiver with the specified tag.

Original signature is '- (NSMenuItem *)itemWithTag:(NSInteger)aTag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSMenuItem ItemWithTag(
	NSInteger aTag
)
Public Overridable Function ItemWithTag ( _
	aTag As NSInteger _
) As NSMenuItem
public:
virtual NSMenuItem^ ItemWithTag(
	NSInteger aTag
)
Parameters
aTag (NSInteger)
A numeric tag associated with a menu item.
Return Value
The found menu item (an object conforming to the NSMenuItem protocol) or nil if the object couldn't be 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)