LampArraySolidEffect 類別

定義

顯示特定持續時間的純色/靜態色彩。

public ref class LampArraySolidEffect sealed : ILampArrayEffect
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Lights.Effects.ILampArraySolidEffectFactory, 458752, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LampArraySolidEffect final : ILampArrayEffect
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Lights.Effects.ILampArraySolidEffectFactory), 458752, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class LampArraySolidEffect : ILampArrayEffect
function LampArraySolidEffect(lampArray, lampIndexes)
Public NotInheritable Class LampArraySolidEffect
Implements ILampArrayEffect
繼承
Object Platform::Object IInspectable LampArraySolidEffect
屬性
實作

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

範例

LampArray 範例

示範如何使用 Windows.Devices.LightsWindows.Devices.Lights.Effects API 來控制周邊裝置的 RGB 光源。

AutoRGB 範例

示範如何從桌面畫面擷取單一代表性色彩,並用它來在連線的 RGB 裝置上光源 LED 燈。

備註

在播放效果之前,您必須將它附加至 LampArrayEffectPlaylist (請參閱 附加) 。

效果內的所有光板的行為都相同,受限於燈光索引的條件約束 (例如色彩色板) 。 一律會盡最大努力來容納燈光索引條件約束。

如果 LampArray 系結至 LampArraySolidEffect 且中斷連線,效果的進度會繼續為無作業。 不會擲回/傳回例外狀況/錯誤。

建構函式

LampArraySolidEffect(LampArray, Int32[])

建立並初始化效果的新實例。

屬性

Color

取得或設定效果的純色。

CompletionBehavior

取得或設定效果完成時的行為。

Duration

取得或設定效果的持續時間;不包含 StartDelay

StartDelay

取得或設定開始效果之前延遲的持續時間。

ZIndex

取得或設定所有播放清單的全域優先順序 (,) 兩個效果修改相同 LampArray) 上的相同燈光 (。

適用於

另請參閱