Editar

Compartilhar via


NSWorkspace.OpenFile Method

Definition

Overloads

OpenFile(String, String, Boolean)
OpenFile(String, NSImage, CGPoint, NSView)
OpenFile(String)
OpenFile(String, String)

OpenFile(String, String, Boolean)

[Foundation.Export("openFile:withApplication:andDeactivate:")]
[ObjCRuntime.ThreadSafe]
public virtual bool OpenFile (string fullPath, string appName, bool deactivate);
abstract member OpenFile : string * string * bool -> bool
override this.OpenFile : string * string * bool -> bool

Parameters

fullPath
String
appName
String
deactivate
Boolean

Returns

Attributes

Applies to

OpenFile(String, NSImage, CGPoint, NSView)

[Foundation.Export("openFile:fromImage:at:inView:")]
[ObjCRuntime.ThreadSafe]
public virtual bool OpenFile (string fullPath, AppKit.NSImage anImage, CoreGraphics.CGPoint point, AppKit.NSView aView);
abstract member OpenFile : string * AppKit.NSImage * CoreGraphics.CGPoint * AppKit.NSView -> bool
override this.OpenFile : string * AppKit.NSImage * CoreGraphics.CGPoint * AppKit.NSView -> bool

Parameters

fullPath
String
anImage
NSImage
point
CGPoint
aView
NSView

Returns

Attributes

Applies to

OpenFile(String)

[Foundation.Export("openFile:")]
[ObjCRuntime.ThreadSafe]
public virtual bool OpenFile (string fullPath);
abstract member OpenFile : string -> bool
override this.OpenFile : string -> bool

Parameters

fullPath
String

Returns

Attributes

Applies to

OpenFile(String, String)

[Foundation.Export("openFile:withApplication:")]
[ObjCRuntime.ThreadSafe]
public virtual bool OpenFile (string fullPath, string appName);
abstract member OpenFile : string * string -> bool
override this.OpenFile : string * string -> bool

Parameters

fullPath
String
appName
String

Returns

Attributes

Applies to