IXamlDirect.SetStringProperty(Object, XamlPropertyIndex, String) メソッド

定義

特定の IXamlDirect文字列プロパティの値を設定します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

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)

パラメーター

xamlDirectObject
Object

Platform::Object

IInspectable

特定の IXamlDirect への参照。

propertyIndex
XamlPropertyIndex

XamlPropertyIndex 列挙型でサポートされているプロパティから値を設定する文字列プロパティへの参照。

value
String

Platform::String

winrt::hstring

指定 したプロパティに設定する文字列値。

適用対象

こちらもご覧ください