IXamlDirect.SetObjectProperty(Object, XamlPropertyIndex, Object) Metode

Definisi

Mengatur nilai properti objek untuk IXamlDirect tertentu.

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

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

Parameter

xamlDirectObject
Object

Platform::Object

IInspectable

Referensi ke IXamlDirect tertentu.

propertyIndex
XamlPropertyIndex

Referensi ke properti objek untuk mengatur nilai dari properti yang didukung dalam enum XamlPropertyIndex .

value
Object

Platform::Object

IInspectable

nilai objek untuk diatur ke properti yang ditentukan.

Berlaku untuk

Lihat juga