IXamlDirect.GetStringProperty(Object, XamlPropertyIndex) メソッド

定義

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

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

public:
 Platform::String ^ GetStringProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex);
winrt::hstring GetStringProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public string GetStringProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex);
Public Function GetStringProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex) As String

パラメーター

xamlDirectObject
Object

Platform::Object

IInspectable

特定の IXamlDirect への参照。

propertyIndex
XamlPropertyIndex

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

戻り値

String

Platform::String

winrt::hstring

指定したプロパティの文字列値。

適用対象

こちらもご覧ください