Bagikan melalui


XamlDirect.SetStringProperty Metode

Definisi

Mengatur nilai properti string untuk IXamlDirectObject tertentu.

public:
 virtual void SetStringProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex, Platform::String ^ value) = SetStringProperty;
void SetStringProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, winrt::hstring const& value);
public void SetStringProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, string value);
function setStringProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetStringProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As String)

Parameter

xamlDirectObject
IXamlDirectObject

Referensi ke IXamlDirectObject tertentu.

propertyIndex
XamlPropertyIndex

Referensi ke properti string untuk mengatur nilai dari daftar properti yang didukung di enum XamlPropertyIndex .

value
String

Platform::String

winrt::hstring

nilai string untuk diatur ke properti yang ditentukan.

Berlaku untuk

Lihat juga