共用方式為


NSMenu.Notifications.ObserveDidChangeItem 方法

定義

多載

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

ObserveDidChangeItem(NSObject, EventHandler<NSMenuItemIndexEventArgs>)

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

參數

objectToObserve
NSObject

傳回

適用於

ObserveDidChangeItem(EventHandler<NSMenuItemIndexEventArgs>)

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

參數

傳回

適用於