NSMenu.Notifications.ObserveDidAddItem 方法

定义

重载

ObserveDidAddItem(EventHandler<NSMenuItemIndexEventArgs>)
ObserveDidAddItem(NSObject, EventHandler<NSMenuItemIndexEventArgs>)

ObserveDidAddItem(EventHandler<NSMenuItemIndexEventArgs>)

public static Foundation.NSObject ObserveDidAddItem (EventHandler<AppKit.NSMenuItemIndexEventArgs> handler);
static member ObserveDidAddItem : EventHandler<AppKit.NSMenuItemIndexEventArgs> -> Foundation.NSObject

参数

返回

适用于

ObserveDidAddItem(NSObject, EventHandler<NSMenuItemIndexEventArgs>)

public static Foundation.NSObject ObserveDidAddItem (Foundation.NSObject objectToObserve, EventHandler<AppKit.NSMenuItemIndexEventArgs> handler);
static member ObserveDidAddItem : Foundation.NSObject * EventHandler<AppKit.NSMenuItemIndexEventArgs> -> Foundation.NSObject

参数

objectToObserve
NSObject

返回

适用于