XamlDirect.GetStringProperty(IXamlDirectObject, XamlPropertyIndex) 方法

定義

取得特定IXamlDirectObject字串屬性值。

public:
 virtual Platform::String ^ GetStringProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex) = GetStringProperty;
winrt::hstring GetStringProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public string GetStringProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex);
function getStringProperty(xamlDirectObject, propertyIndex)
Public Function GetStringProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex) As String

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

字串屬性的參考,可從XamlPropertyIndex列舉中支援的屬性清單中取得 的值。

傳回

String

Platform::String

winrt::hstring

指定之屬性的字串值。

適用於

另請參閱