Share via


NSEvent.Create(CGEvent) Method

Definition

Create a new NSEvent using the specified CGEvent.

public static AppKit.NSEvent? Create(CoreGraphics.CGEvent event);
static member Create : CoreGraphics.CGEvent -> AppKit.NSEvent

Parameters

event
CGEvent

The CGEvent that will be wrapped.

Returns

The newly created NSEvent.

Remarks

This method will return null if there's no corresponding Cocoa event.

Applies to