LampArray.GetIndicesForPurposes(LampPurposes) メソッド

定義

指定した LampPurposes にバインドされているすべてのランプ インデックスを検索します。

public:
 virtual Platform::Array <int> ^ GetIndicesForPurposes(LampPurposes purposes) = GetIndicesForPurposes;
winrt::array_view <int> GetIndicesForPurposes(LampPurposes const& purposes);
public int[] GetIndicesForPurposes(LampPurposes purposes);
function getIndicesForPurposes(purposes)
Public Function GetIndicesForPurposes (purposes As LampPurposes) As Integer()

パラメーター

戻り値

Int32[]

int[]

特定の LampPurposes にバインドされているすべてのランプ インデックスの配列。 LampPurposes にバインドされているランプ インデックスが見つからない場合、配列は空です。

LampArray サンプル

Windows.Devices.Lights API と Windows.Devices.Lights.Effects API を使用して周辺機器の RGB 照明を制御する方法を示します。

AutoRGB サンプル

デスクトップ画面から 1 つの代表的な色を抽出し、それを使用して、接続された RGB デバイス上の LED ランプを点灯させる方法を示します。

注釈

ランプ インデックスは、デバイスによって複数の LampPurposes にバインドされる (必要に応じて) できます。

適用対象

こちらもご覧ください