IXamlDirect.SetObjectProperty(Object, XamlPropertyIndex, Object) Metodo

Definizione

Imposta il valore di una proprietà dell'oggetto per un IXamlDirect specifico.

Questa documentazione si applica a WinUI 2 per UWP (per WinUI nella SDK per app di Windows, vedere gli spazi dei nomi SDK per app di 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)

Parametri

xamlDirectObject
Object

Platform::Object

IInspectable

Riferimento all'IXamlDirect specifico.

propertyIndex
XamlPropertyIndex

Riferimento alla proprietà dell'oggetto in cui impostare il valore dalle proprietà supportate in XamlPropertyIndex enumerazione.

value
Object

Platform::Object

IInspectable

valore dell'oggetto da impostare sulla proprietà specificata.

Si applica a

Vedi anche