編輯

共用方式為


NSMenuView.SetWindowFrameForAttachingToRect Method

Definition

[Foundation.Export("setWindowFrameForAttachingToRect:onScreen:preferredEdge:popUpSelectedItem:")]
public virtual void SetWindowFrameForAttachingToRect (CoreGraphics.CGRect screenRect, AppKit.NSScreen onScreen, AppKit.NSRectEdge preferredEdge, nint popupSelectedItem);
abstract member SetWindowFrameForAttachingToRect : CoreGraphics.CGRect * AppKit.NSScreen * AppKit.NSRectEdge * nint -> unit
override this.SetWindowFrameForAttachingToRect : CoreGraphics.CGRect * AppKit.NSScreen * AppKit.NSRectEdge * nint -> unit

Parameters

screenRect
CGRect
onScreen
NSScreen
preferredEdge
NSRectEdge
popupSelectedItem
System.System.IntPtr System.nativeint
Attributes

Applies to