[英]Programmatically open a file from Xamarin.Mac solution
我們有一個 Xamarin.Mac 應用程序,它必須以編程方式從應用程序加載/打開 DOCX 文件。
任何人都可以讓我知道從 Xamarin.Mac 解決方案以編程方式打開文件的最佳方法是什么,以及這是否與為應用程序提供特殊用戶權限有關?
你可能想要
NSWorkspace.SharedWorkspace.OpenFile (string)
https://developer.apple.com/reference/appkit/nsworkspace/1525235-openfile?language=objc
或者
NSWorkspace.SharedWorkspace.OpenFile (string, string)
https://developer.apple.com/reference/appkit/nsworkspace/1524481-openfile?language=objc
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.