PrintTask.IsPreviewEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
property bool IsPreviewEnabled { bool get(); void set(bool value); };
bool IsPreviewEnabled();
void IsPreviewEnabled(bool value);
public bool IsPreviewEnabled { get; set; }
var boolean = printTask.isPreviewEnabled;
printTask.isPreviewEnabled = boolean;
Public Property IsPreviewEnabled As Boolean
屬性值
Boolean
bool
如果啟用預覽列印,則為 True。
Windows 需求
裝置系列 |
Windows 10 Anniversary Edition (已於 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
|
備註
在某些情況下,顯示預覽列印需要太多時間,並中斷通用 Windows 應用程式的使用者體驗。 基於這個理由,開發人員可能會想要停用預覽列印功能,以利於更順暢的控制流程。
根據預設, isPreviewEnabled 為 true。 要在背景列印的 UWP 應用程式必須設定 為PreviewEnabled 為 false。