XamlDirect.SetStringProperty 方法

定義

設定特定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)

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

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

value
String

Platform::String

winrt::hstring

設定為指定屬性的字串值。

適用於

另請參閱