IXamlDirect.SetStringProperty(Object, XamlPropertyIndex, String) Metodo

Definizione

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

Questa documentazione si applica a WinUI 2 per la piattaforma UWP (per WinUI nel SDK per app di Windows, vedi gli spazi dei nomi SDK per app di Windows).

public:
 void SetStringProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, Platform::String ^ value);
void SetStringProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, winrt::hstring const& value);
public void SetStringProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, string value);
Public Sub SetStringProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As String)

Parametri

xamlDirectObject
Object

Platform::Object

IInspectable

Riferimento all'oggetto IXamlDirect specifico.

propertyIndex
XamlPropertyIndex

Riferimento alla proprietà stringa in cui impostare il valore dalle proprietà supportate nell'enumerazione XamlPropertyIndex .

value
String

Platform::String

winrt::hstring

valore stringa da impostare sulla proprietà specificata.

Si applica a

Vedi anche