共用方式為


NSView.WillOpenMenu(NSMenu, NSEvent) 方法

定義

[Foundation.Export("willOpenMenu:withEvent:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void WillOpenMenu (AppKit.NSMenu menu, AppKit.NSEvent theEvent);
abstract member WillOpenMenu : AppKit.NSMenu * AppKit.NSEvent -> unit
override this.WillOpenMenu : AppKit.NSMenu * AppKit.NSEvent -> unit

參數

menu
NSMenu
theEvent
NSEvent
屬性

適用於