IXamlDirect.GetObjectProperty(Object, XamlPropertyIndex) Metode

Definisi

Mendapatkan 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:
 Platform::Object ^ GetObjectProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex);
IInspectable GetObjectProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public object GetObjectProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex);
Public Function GetObjectProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex) As Object

Parameter

xamlDirectObject
Object

Platform::Object

IInspectable

Referensi ke IXamlDirect tertentu.

propertyIndex
XamlPropertyIndex

Referensi ke properti objek untuk mendapatkan nilai dari daftar properti yang didukung di enum XamlPropertyIndex .

Mengembalikan

Object

Platform::Object

IInspectable

nilai objek dari properti yang ditentukan.

Berlaku untuk

Lihat juga