Bagikan melalui


IXamlDirect.SetColorProperty(Object, XamlPropertyIndex, Color) Metode

Definisi

Mengatur nilai properti Warna untuk IXamlDirect tertentu.

Dokumentasi ini berlaku untuk WinUI 2 untuk UWP (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

public:
 void SetColorProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, Color value);
void SetColorProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, Color const& value);
public void SetColorProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, Color value);
Public Sub SetColorProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As Color)

Parameter

xamlDirectObject
Object

Platform::Object

IInspectable

Referensi ke IXamlDirect tertentu.

propertyIndex
XamlPropertyIndex

Referensi ke properti Warna untuk mengatur nilai dari daftar properti yang didukung di enum XamlPropertyIndex .

value
Color

Nilai warna untuk diatur ke properti yang ditentukan.

Berlaku untuk

Lihat juga