共用方式為


PrintTask.IsPreviewEnabled 屬性

定義

取得或設定值,指出 PrintTask 是否會顯示預覽列印。

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 應用程式的使用者體驗。 基於這個理由,開發人員可能會想要停用預覽列印功能,以利於更順暢的控制流程。

根據預設, isPreviewEnabledtrue。 要在背景列印的 UWP 應用程式必須設定 為PreviewEnabledfalse

適用於