Share via


IAnimatedVisualSource2.SetColorProperty(String, Color) メソッド

定義

アニメーション化されたビジュアルの色を設定します。

public:
 void SetColorProperty(Platform::String ^ propertyName, Color value);
void SetColorProperty(winrt::hstring const& propertyName, Color const& value);
public void SetColorProperty(string propertyName, Color value);
function setColorProperty(propertyName, value)
Public Sub SetColorProperty (propertyName As String, value As Color)

パラメーター

propertyName
String

Platform::String

winrt::hstring

アニメーション化されたアイコンの JSON ファイルで定義されている色のプロパティ名。

value
Color

propertyName の色の値。

注釈

アニメーション化されたアイコンの JSON ファイルは 、LottieGen によって生成されます。 たとえば、 という名前 Foregroundの Lottie アニメーションで color プロパティを定義する場合は、 プロパティを使用して色を AnimatedIcon.Foreground 設定できます。

適用対象