Share via


CompositionLight.IsEnabled 屬性

定義

取得或設定值,這個值會判斷組合光線是否開啟。

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

void IsEnabled(bool value);
public bool IsEnabled { get; set; }
var boolean = compositionLight.isEnabled;
compositionLight.isEnabled = boolean;
Public Property IsEnabled As Boolean

屬性值

Boolean

bool

如果 光線開啟,則為 true;否則為 false。 預設值為 True

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

適用於