IXamlDirect.SetObjectProperty(Object, XamlPropertyIndex, Object) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
Referensi ke IXamlDirect tertentu.
- propertyIndex
- XamlPropertyIndex
Referensi ke properti objek untuk mengatur nilai dari properti yang didukung dalam enum XamlPropertyIndex .
- value
- Object
nilai objek untuk diatur ke properti yang ditentukan.
Berlaku untuk
Lihat juga
Saran dan Komentar
Kirim dan lihat umpan balik untuk