IXamlDirect.SetXamlDirectObjectProperty 方法

定義

設定特定 IXamlDirectIXamlDirect屬性值。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 void SetXamlDirectObjectProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex, Platform::Object ^ value);
void SetXamlDirectObjectProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, IInspectable const& value);
public void SetXamlDirectObjectProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex, object value);
Public Sub SetXamlDirectObjectProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex, value As Object)

參數

xamlDirectObject
Object

Platform::Object

IInspectable

特定 IXamlDirect的參考。

propertyIndex
XamlPropertyIndex

IXamlDirect屬性的參考,要從XamlPropertyIndex列舉中支援的屬性清單中設定值。

value
Object

Platform::Object

IInspectable

要設定為指定屬性的IXamlDirect值。

適用於

另請參閱