Share via


XamlDirect.SetStringProperty Method

Definition

Sets the value of a string property for a specific IXamlDirectObject.

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)

Parameters

xamlDirectObject
IXamlDirectObject

A reference to the specific IXamlDirectObject.

propertyIndex
XamlPropertyIndex

A reference to the string property to set the value of from the list of supported properties in XamlPropertyIndex enum.

value
String

Platform::String

winrt::hstring

string value to set to the specified property.

Applies to

See also