Share via


ApplicationView.IsScreenCaptureEnabled 屬性

定義

取得或設定是否為視窗啟用螢幕擷取, (應用程式檢視) 。

public:
 property bool IsScreenCaptureEnabled { bool get(); void set(bool value); };
bool IsScreenCaptureEnabled();

void IsScreenCaptureEnabled(bool value);
public bool IsScreenCaptureEnabled { get; set; }
var boolean = applicationView.isScreenCaptureEnabled;
applicationView.isScreenCaptureEnabled = boolean;
Public Property IsScreenCaptureEnabled As Boolean

屬性值

Boolean

bool

如果視窗已啟用螢幕擷取,則為true;如果不是,則為 false。

備註

這個屬性可讓您防止視窗的不想要複本。 當視窗的螢幕擷取停用時,視窗會在螢幕擷取作業所產生的影像中顯示為黑色。 如需設定 isScreenCaptureEnabled 屬性的範例,請參閱 停用螢幕擷取範例

屬性是視窗物件的非靜態成員。 對於 JavaScript,這表示它是 getForCurrentView 所建立之視窗物件的方法,而不是 ApplicationView 類別。

適用於

另請參閱