共用方式為


CGEvent 建構函式

定義

多載

CGEvent(CGEventSource)
CGEvent(NSData)
CGEvent(IntPtr)
CGEvent(CGEventSource, CGScrollEventUnit, Int32[])
CGEvent(CGEventSource, UInt16, Boolean)
CGEvent(CGEventSource, CGEventType, CGPoint, CGMouseButton)

CGEvent(CGEventSource)

public CGEvent (CoreGraphics.CGEventSource eventSource);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource -> CoreGraphics.CGEvent

參數

eventSource
CGEventSource

適用於

CGEvent(NSData)

public CGEvent (Foundation.NSData source);
new CoreGraphics.CGEvent : Foundation.NSData -> CoreGraphics.CGEvent

參數

source
NSData

適用於

CGEvent(IntPtr)

public CGEvent (IntPtr handle);
new CoreGraphics.CGEvent : nativeint -> CoreGraphics.CGEvent

參數

handle
IntPtr

nativeint

適用於

CGEvent(CGEventSource, CGScrollEventUnit, Int32[])

public CGEvent (CoreGraphics.CGEventSource source, CoreGraphics.CGScrollEventUnit units, params int[] wheel);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource * CoreGraphics.CGScrollEventUnit * int[] -> CoreGraphics.CGEvent

參數

source
CGEventSource
wheel
Int32[]

適用於

CGEvent(CGEventSource, UInt16, Boolean)

public CGEvent (CoreGraphics.CGEventSource source, ushort virtualKey, bool keyDown);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource * uint16 * bool -> CoreGraphics.CGEvent

參數

source
CGEventSource
virtualKey
UInt16
keyDown
Boolean

適用於

CGEvent(CGEventSource, CGEventType, CGPoint, CGMouseButton)

public CGEvent (CoreGraphics.CGEventSource source, CoreGraphics.CGEventType mouseType, CoreGraphics.CGPoint mouseCursorPosition, CoreGraphics.CGMouseButton mouseButton);
new CoreGraphics.CGEvent : CoreGraphics.CGEventSource * CoreGraphics.CGEventType * CoreGraphics.CGPoint * CoreGraphics.CGMouseButton -> CoreGraphics.CGEvent

參數

source
CGEventSource
mouseType
CGEventType
mouseCursorPosition
CGPoint
mouseButton
CGMouseButton

適用於